Fish designs the command line for humans

Summary

Axel Liljencrantz explains Fish as an interactive shell with suggestions, syntax colouring and understandable defaults. Fish first appeared in 2005.

Ideas

  • Autosuggestions use the local command history as context.
  • Syntax colouring marks invalid commands before they are run.
  • Tab completion describes options and known arguments.
  • A consistent language avoids shell special cases that have grown historically.

Insights

  • Good defaults make powerful tools accessible without configuration.
  • Visible feedback prevents errors earlier than messages after the fact.
  • Breaking compatibility can improve usability but makes migrating scripts harder.

Facts

  • Fish is not fully POSIX compatible.
  • The shell is developed as free software.

Recommendations

  • Use Fish interactively and POSIX shells for portable scripts.
  • Keep your own functions and abbreviations under version control.

References

Read the original article

Search the Web Archive

Found a mistake or have something to add? Get in touch.