The friendly interactive shell
As its name, fish is a very friendly shell, highly recommended! Use the command sudo apt install fish to install it. When you are done, run the command fish to switch to fish and exit back to bash.
Briefly introduce its advantages:
Auto-complement, syntax highlighting
Bash's auto complement defaults to just the full command, the path, if you want to complement all variables, parameters, and so on, usually need to use complex key combinations (see bash above), even if you can remember them, quickly and accurately press these key combinations, is a severe test. The automatic complement of fish can automatically recognize the grammar and complement the correct content. and has syntax highlighting functions, such as using MPlayer to put MP3:
Mpl<tab> (Ayer)-l<tab> (OOP) <tab> (0)-sh<tab> (uffle)-pl<tab> (aylist) <tab> (mp3 _playlist)
A long command was completed after a burst of press <tab>.
When the result is not unique, the hint contains a short description, which usually does not need to look at the help:
Mplayer-l
After <tab>, the parameters are automatically fully-lo and then given a hint
-{lo}adidx (Load index from file)-{lo}op (Loop playback) {curly braces for cyan text}
Its syntax highlighting function is very useful, if you enter the command is correct, then the blue display, the correct parameters in white display, the error is all in red.
Convenient History Search
or the above command.
Mplayer-loop 0-shuffle-playlist Mp3_playlist
Use the upside down to navigate through the command history until you find this command, of course, it's too slow.
You can also enter a part of the above command, such as Uffle, if you just flip it.
(You can also insert a history word meta+ the input section)
Folder history
Dirh (dir history) to display the folder records entered in the current session
Using PREVD and NEXTD jumps
If you have entered 1 2 3 4 5 of these folders, PREVD 4 allows you to jump directly to 5 in 1
Other features, fish are basically compatible with bash. Key bindings are also very similar, with few key bindings inconsistent, for example:
\c-h deletes one character before the cursor (bash is a backspace key, inconvenient)
Modify/ETC/FISH_INPUTRC This file to add the following line:
"\c-n": History-search-forward
"\c-p": History-search-backward
Now use CTRL, use CTRL + N to flip. If you have entered a character on the command line, then CTRL is looking up the character you entered in the history record, and CTRL + N is very handy for looking down.