


Options starting with “-”, up to the first “-” parameter

Parameters that are filenames (if the file exists) Keywords like if - this falls back on the command color if unset The following variables are available to change the highlighting colors in fish: Running just fish_config opens a browser interface, or you can use fish_config theme in the terminal.įor example, to disable nearly all coloring: To customize the syntax highlighting, you can set the environment variables listed in the Variables for changing highlighting colors section.įish also provides pre-made color themes you can pick with fish_config. Reading from or appending to a non-existing file. The most important feedback is the detection of potential errors. Syntax highlighting ¶įish interprets the command line as it is typed and uses syntax highlighting to provide feedback. Typically you can drop new completions in ~/.config/fish/completions/name-of-command.fish and fish will find them automatically. The difference is the $fish_complete_path list is used instead of $fish_function_path. For that, see Writing your own completions.Ĭompletion scripts are loaded on demand, just like functions are.
#VIM SHORTCUTS END OF LINE INSTALL#
You can also write your own completions or install some you got from someone else. Mount uses mount points specified in fstab as completions.Īpt, rpm and yum show installed or installable packages Make uses targets in the Makefile in the current directory as completions.
#VIM SHORTCUTS END OF LINE MANUAL#
Man and whatis show the installed manual pages as completions. Most of these completions are simple options like the -l option for ls, but a lot are more advanced. It also provides a large number of program specific scripted completions. Pressing Control+ S (the pager-toggle-search binding - / in vi-mode) opens up a search menu that you can use to filter the list.įish provides some general purpose completions, like for commands, variable names, usernames or files. The pager can be navigated with the arrow keys, Page Up / Page Down, Tab or Shift+ Tab. If it finds more, it inserts the longest unambiguous part and then opens a menu (the “pager”) that you can navigate to find what you’re looking for. If it finds just one possibility, it inserts it. When you type Tab, fish tries to guess the rest of the word under the cursor. Tab completion is a time saving feature of any modern shell.

Set -g fish_autosuggestion_enabled 0 Tab Completion ¶ If you don’t like autosuggestions, you can disable them by setting $fish_autosuggestion_enabled to 0: They are also an efficient technique for navigating through directory hierarchies. If the autosuggestion is not what you want, just ignore it: it won’t execute unless you accept it.Īutosuggestions are a powerful way to quickly summon frequently entered commands, by typing the first few characters. To accept the first suggested word, press Alt+ → or Alt+ F. To accept the autosuggestion (replacing the command line contents), press → or Control+ F. As you type commands, you will see a suggestion offered after the cursor, in a muted gray color (which can be changed with the fish_color_autosuggestion variable). Autosuggestions ¶įish suggests commands as you type, based on command history, completions, and valid file paths. The tutorial can be viewed with help tutorial or man fish-tutorial. The main page can be viewed via help index (or just help) or man fish-doc. For instance, to obtain help on the fg builtin, either type fg -h or help fg. Help on a specific builtin can also be obtained with the -h parameter. For example, man set will show the documentation for set as a man page. For instance, writing help syntax displays the syntax section of this documentation.įish also has man pages for its commands, and translates the help pages to man pages. Use the help command to obtain help on a specific subject or command. That’s down to a few features we’ll explain in the next few sections.įish is used by giving commands in the fish language, see The Fish Language for information on that. Fish prides itself on being really nice to use interactively.
