diff --git a/fish/.config/fish/functions/b.fish b/fish/.config/fish/functions/b.fish index 39ae7b3..01a0c58 100644 --- a/fish/.config/fish/functions/b.fish +++ b/fish/.config/fish/functions/b.fish @@ -1,3 +1,10 @@ -function b --wraps='cd ..' --description 'alias b=cd ..' - cd .. $argv; +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