Home

Search IconIcon to open search

fish

A shell.

#todo - are fish completions lazy-loaded?

# See also

# Notes

To avoid saving a command to fish_history, just start it with a space. Like in Bash.

# Tips

abbr -a to add abbreviations.

To accept the autosuggestion, hit (right arrow) or Ctrl + F. To accept a single word of the autosuggestion, Alt + → (right arrow) or Alt + F.

Navigating folders:

Use &| to pipe stdout and stderr to the next command. Use 2>| to pipe only stderr.

# Plugins

Install fisher, a plugin manager. It’s the only way to manage plugins. Don’t even touch oh-my-fish.

# Variables

To make environment variables available to other programs (and shells) that fish launches, you should export them. Like this:

1
2
3
set -gx DENO_INSTALL "/home/psharen/.deno"
# optionally, add to PATH:
set -gx PATH "$DENO_INSTALL" $PATH

You should add this to config.fish to make it persistent. If you want to add something to PATH, you can use fish_add_path instead.