complete -c sail -s a -l add -d 'Add a jump for the current directory' complete -c sail -s e -l edit -d 'Edit the jump file' complete -c sail -s p -l print -d 'Print the jump file' complete -x -c sail -a "(__sailfish_suggest)" function __sailfish_suggest set -l jumps (__sailfish_print_jumpfile) test -r $jumps; or return 1 set -l cmd (commandline -co) test (count $cmd) -gt 1; and return 1 cat $jumps end