fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
d835c5252
master
1# localization: tier1 2function popd --description"Pop directory from the stack and cd to it" 3if count $argv > /dev/null 4switch $argv [ 1 ] 5case -h --h --he --hel --help 6__fish_print_help popd 7return 0 8end 9end 10 11if set -q dirstack[ 1 ] 12cd $dirstack [ 1 ] 13set -e dirstack[ 1 ] 14else 15printf ( _ "%s: Directory stack is empty…\n" ) popd1>&2 16return 1 17end 18end