Summary of Useful Shortcuts for Fish Shell   thumbnail

Summary of Useful Shortcuts for Fish Shell

Also known as the Friendly Interactive Shell or Fish, we have summarized useful shortcuts for the user-friendly interactive shell environment Fish Shell.

Posted at: 2023.10.20

Editorial Note: We earn a commission from partner links on keyboardista - English version. Commissions do not affect our editors' opinions or evaluations.

Command Shortcuts

Since commands are frequently executed in Fish Shell, remembering command-related shortcuts is essential for work efficiency. Fish Shell has many convenient shortcuts such as directory completion (Tab) and history, so using these shortcuts can also reduce the number of keystrokes.

ShortcutDescription
Ctrl + RStarts searching the command history.
TabPerforms auto-completion for files and directories.
Ctrl + LClears the screen.
Ctrl + CInterrupts the running command.
Ctrl + DExits the shell (logout).
Ctrl + GCancels command execution.

Input Shortcuts

Input shortcuts are useful not only for those who edit shell scripts directly but also for quick input. Cursor movement shortcuts are especially handy, so be sure to master them.

ShortcutDescription
Ctrl + UDeletes from the cursor position to the beginning of the line.
Ctrl + KDeletes from the cursor position to the end of the line.
Ctrl + WDeletes text word by word.
Alt + ←Moves the cursor by word.
Alt + →Moves the cursor backward by word.
Ctrl + TSwaps two characters.