function b --description 'Move up the directory specified number of times' if test -z $argv[1] set n 1 else set n $argv[1] end for i in (seq $n) cd .. end end