dotfiles/fish/.config/fish/functions/b.fish

10 lines
203 B
Fish

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