1 2 3 4 5 6 7 8
function pushd -d (N_ "Push directory to stack") # Comment to avoid set completions set -g dirstack (command pwd) $dirstack cd $argv[1] end