1 2 3 4 5 6 7 8 9
function mkcd if [ (count $argv) != 1 ] echo "Usage: mkcd DIR" return 1 end mkdir -p $argv[1] cd $argv[1] end