Przejdź do treści PWA

Learn Fish Shell 🇬🇧

  • cd - — Enter to previous directory
  • cd -- — Enter to user home directory
  • echo $status — Display last command exit status
  • echo "I'm here:" (pwd) — Evaluate command in string
  • echo $version — Display installed version of Fish Shell
  • functions — Display all available functions (not commands)
  • for x in (seq 10); echo $x; end; — ???
  • vared $rrr — Editing variable in interactive mode doc
  • abbr -a -- - 'cd -' — Create shortcut “-“ which will run “cd -“
  • abbr -a -- "!!" 'eval command $history[1]'

In script:

  • echo $_ — Display

Officials

A long time ago I wrote an article about Fish (in polish) — Fish — shell przyjazny każdemu