<commit_before>###################
# Laravel
###################
alias lar_new="composer create-project laravel/laravel"
alias lar_dev="composer require laravel/homestead --dev; php vendor/bin/homestead make"

###################
# Git shortcuts
###################
gDiscard() { git stash save --keep-index; git stash drop }

NIH_REPO_DIR="$HOME/REPOS"
repos() {
	 ~/REPOS
	case "$1" in
		"goto")
			cd "$NIH_REPO_DIR"
			;;
		"show")
			tree -d -L 2 "$NIH_REPO_DIR"
			;;
		*)
			echo "Function not defined."
			;;
	esac
}

###################
# Symfony
###################
alias s_up="php app/console server:run"

###################
# Hugo
###################
BLOG_DIR="$NIH_REPO_DIR/private/blog"

blog() {
	case "$1" in
		"serve")
			hugo server -w -t "nh"
			;;
		"new")
			name=$(echo "$*" | awk '{print tolower($0)}')
			hugo new post/$(date +"%Y-%m-%d")-${name// /-}.md
			;;
		"goto")
			cd "$BLOG_DIR"
			;;
		*)
			echo "Function not defined."
			;;
	esac
}

###################
# Website
###################
web() {
	case "$1" in
		"new")
			echo "Creating a new local website...\n"
			echo "\n\nCreating Caddyfile entry...\n"
			bash -c "cat <<EOIPFW >> Caddyfile
:80 {
	root .
	tls off
	fastcgi / 127.0.0.1:9001 php
}
EOIPFW"
			echo "\nStarting caddy..."
			sudo systemctl restart php-fpm.service
			caddy
			;;
		"start")
			echo "\nStarting caddy..."
			sudo systemctl restart php-fpm.service
			caddy
			;;
		"list")
			echo "TODO: needs to be implemented"
			;;
		"goto")
			echo "TODO: needs to be implemented"
			;;
		*)
			echo "Function not defined."
			;;
	esac
}
<commit_msg>added git status shortcut<commit_after>###################
# Laravel
###################
alias lar_new="composer create-project laravel/laravel"
alias lar_dev="composer require laravel/homestead --dev; php vendor/bin/homestead make"

###################
# Git shortcuts
###################
gDiscard() { git stash save --keep-index; git stash drop }

NIH_REPO_DIR="$HOME/REPOS"
repos() {
	case "$1" in
		"goto")
			cd "$NIH_REPO_DIR"
			;;
		"show")
			tree -d -L 2 "$NIH_REPO_DIR"
			;;
		"status")
			echo "$NIH_REPO_DIR"

			cd "$NIH_REPO_DIR"

			bold=$(tput bold)
			normal=$(tput sgr0)

			all_dirs=0;
			up_dirs=0;

			for file in */*; do
				if [[ -d "$file" && ! -L "$file" ]]; then
					((all_dirs++))
					output="$(git -c color.status=always -C $file status -s -u)"

					if [ ! -z "$output" ]; then

						((up_dirs++))

						folder="${file%%/*}";
						subfolder="${file#*/}";
						output="${output/$'\n'/\n│         }";
						echo "├── $folder";
						echo "│   └──$subfolder";
						echo "│         $output\n│";
					fi;
				fi;
			done;

			echo "│\n└── ${bold}$up_dirs${normal} out of ${bold}$all_dirs${normal} have changes.";
			cd $OLDPWD
			;;
		*)
			echo "Function not defined."
			;;
	esac
}

###################
# Symfony
###################
alias s_up="php app/console server:run"

###################
# Hugo
###################
BLOG_DIR="$NIH_REPO_DIR/private/blog"

blog() {
	case "$1" in
		"serve")
			hugo server -w -t "nh"
			;;
		"new")
			name=$(echo "$*" | awk '{print tolower($0)}')
			hugo new post/$(date +"%Y-%m-%d")-${name// /-}.md
			;;
		"goto")
			cd "$BLOG_DIR"
			;;
		*)
			echo "Function not defined."
			;;
	esac
}

###################
# Website
###################
web() {
	case "$1" in
		"new")
			echo "Creating a new local website...\n"
			echo "\n\nCreating Caddyfile entry...\n"
			bash -c "cat <<EOIPFW >> Caddyfile
:80 {
	root .
	tls off
	fastcgi / 127.0.0.1:9001 php
}
EOIPFW"
			echo "\nStarting caddy..."
			sudo systemctl restart php-fpm.service
			caddy
			;;
		"start")
			echo "\nStarting caddy..."
			sudo systemctl restart php-fpm.service
			caddy
			;;
		"list")
			echo "TODO: needs to be implemented"
			;;
		"goto")
			echo "TODO: needs to be implemented"
			;;
		*)
			echo "Function not defined."
			;;
	esac
}

{'fraction_non_alphanumeric': 0.261910893638939, 'fraction_numerical': 0.009528714911151173, 'mean_word_length': 2.93515704154002, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2794001', 'n_tokens_mistral': 1741, 'n_tokens_neox': 1455, 'n_words': 350}