<commit_before>function df --description 'df should always be human readable'
    command df -h $argv
end

function ds --description 'calculate size of current or a given dir and sort by size'
	switch (count $argv)

		case 0
		    du -hsx * .[a-zA-Z0-9_]* 2> /dev/null | \
		    egrep '^ *[0-9.]*[MG]' | sort -n > /tmp/list
		    egrep '^ *[0-9.]*M' /tmp/list
		    egrep '^ *[0-9.]*G' /tmp/list
		    rm -rf /tmp/list

		case 1
		    du -hx $argv .[a-zA-Z0-9_]* 2> /dev/null | \
		    egrep '^ *[0-9.]*[MG]' | sort -n > /tmp/list
		    egrep '^ *[0-9.]*M' /tmp/list
		    egrep '^ *[0-9.]*G' /tmp/list
		    rm -rf /tmp/list

		case \*
			echo "Only none or 1 argument is valid!"
			return 1

	end
end<commit_msg>add psgrep to find processes easily<commit_after>function df --description 'df should always be human readable'
    command df -h $argv
end

function ds --description 'calculate size of current or a given dir and sort by size'
	switch (count $argv)

		case 0
		    du -hsx * .[a-zA-Z0-9_]* 2> /dev/null | \
		    egrep '^ *[0-9.]*[MG]' | sort -n > /tmp/list
		    egrep '^ *[0-9.]*M' /tmp/list
		    egrep '^ *[0-9.]*G' /tmp/list
		    rm -rf /tmp/list

		case 1
		    du -hx $argv .[a-zA-Z0-9_]* 2> /dev/null | \
		    egrep '^ *[0-9.]*[MG]' | sort -n > /tmp/list
		    egrep '^ *[0-9.]*M' /tmp/list
		    egrep '^ *[0-9.]*G' /tmp/list
		    rm -rf /tmp/list

		case \*
			echo "Only none or 1 argument is valid!"
			return 1

	end
end

function psgrep --description 'show matching processes for $argv'
	switch (count $argv)

	case 0
		echo -e "No argument given!\nDo you expect me to guess what you're looking for?"
		return 1

	case 1
		ps aux | grep $argv | grep -v grep

	case \*
		echo "Only 1 arguemnt is valid!"
		return 1

	end
end
{'fraction_non_alphanumeric': 0.1630558722919042, 'fraction_numerical': 0.027936145952109463, 'mean_word_length': 2.1117021276595747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '5947164', 'n_tokens_mistral': 793, 'n_tokens_neox': 674, 'n_words': 229}