
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
Table Of Contents
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.
| Action | Shortcut |
|---|---|
| Search command history | CtrlR |
| Auto-complete directory or command | Tab |
| Clear screen | CtrlL |
| Cancel current running command | CtrlC |
| Exit shell (logout) | CtrlD |
| Cancel command line | CtrlG |
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.
| Action | Shortcut |
|---|---|
| Move cursor to beginning of line | CtrlA |
| Move cursor to end of line | CtrlE |
| Delete to beginning of line | CtrlU |
| Delete to end of line | CtrlK |
| Delete previous word | CtrlW |
| Delete next word | AltD |