···11+function mcd --description="Create a directory and set CWD"
22+ command mkdir $argv
33+ if test $status = 0
44+ switch $argv[(count $argv)]
55+ case '-*'
66+ case '*'
77+ cd $argv[(count $argv)]
88+ return
99+ end
1010+ end
1111+end
+3
functions/most-used.fish
···11+function most-used --description 'Print most used commands'
22+ history | awk '{print $1}' | sort | uniq -c | sort -rn | head $argv
33+end
···11+function work
22+ set project (basename (git rev-parse --show-toplevel))
33+ time -f '%E' -- tmux new -s $project ; or time -f '%E' -- tmux attach -t $project
44+end