mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 05:20:35 +08:00
8ace1739f5
darcs-hash:20061005064419-ac50b-4770f393ea02761a5f4b4044b456d1b618d6da23.gz
14 lines
187 B
Fish
14 lines
187 B
Fish
|
|
function popd -d (N_ "Pop dir from stack")
|
|
if test $dirstack[1]
|
|
cd $dirstack[1]
|
|
else
|
|
printf (_ "%s: Directory stack is empty...\n") popd
|
|
return 1
|
|
end
|
|
|
|
set -e dirstack[1]
|
|
|
|
end
|
|
|