mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
c2f6c6c1d2
darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
14 lines
185 B
Fish
14 lines
185 B
Fish
|
|
function popd -d (N_ "Pop dir from stack")
|
|
if test $dirstack[1]
|
|
cd $dirstack[1]
|
|
else
|
|
printf (_ "%s: Directory stack is empty...") popd
|
|
return 1
|
|
end
|
|
|
|
set -e dirstack[1]
|
|
|
|
end
|
|
|