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:
dirh
prints the historycdh
displays a prompt to quickly navigate the historyprevd
moves backward through the history. It is bound to Alt+←nextd
moves forward through the history. It is bound to Alt+→
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:
|
|
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.