Skip to content

fish

fish is a shell that suggests commands as you type and offers completion for commands, paths and options.

Visit fish

What does fish suggest while you type?

fish reads commands and can suggest a completion from context or history. A suggestion is text for you to inspect before running it. Check the command and any folder it mentions, especially when the suggestion comes from something you did in another project.

Can you run the same instructions you use in Bash?

Simple commands such as pwd are available in both. fish has its own script syntax. If a project guide expects Bash, use a Bash session for its pasted snippets and let scripts run with the interpreter they declare. In a known local fish session, pwd reports your current folder.

What do you need to move your fish setup?

fish is free and open source. Its install page lists macOS, Linux and BSD, plus Windows environments such as the Windows Subsystem for Linux. Keep the settings you need from config.fish and any functions you wrote. Some preferences persist as universal variables shared across fish sessions. Keep a note of those settings separately and leave secrets and machine-specific paths out of any shared copy.

How can you practice rejecting an old suggestion?

On paper, write sample-shop as your intended folder. Draw a grey suggestion that contains sample-notes. Leave the suggestion unaccepted and write down the result you would expect from a folder check. Use the paper exercise if you cannot confirm the actual shell or folder.