🐟
Fish Shell Shortcuts
Terminal
By EZ4Code Team
Basics
6| Shortcut | Description | Platform |
|---|---|---|
| Tab | Complete | all |
| Enter | Execute command | all |
| Ctrl+C | Cancel command | all |
| Ctrl+D | Exit shell | all |
| Ctrl+L | Clear screen | all |
| Alt+L | List directory | all |
Autosuggestion
5| Shortcut | Description | Platform |
|---|---|---|
| Right Arrow | Accept suggestion | all |
| Alt+Right | Accept one word | all |
| Ctrl+F | Accept full suggestion | all |
| Alt+Left | Reject suggestion | all |
| Ctrl+W | Delete word | all |
Tab Completion
5| Shortcut | Description | Platform |
|---|---|---|
| Tab | Complete | all |
| Shift+Tab | Complete and show menu | all |
| Alt+, | Next completion | all |
| Alt+/ | Previous completion | all |
| Alt+= | Show all completions | all |
Syntax
6| Shortcut | Description | Platform |
|---|---|---|
| set var value | Set variable | all |
| if; ...; end | If statement | all |
| for i in ...; end | For loop | all |
| while; ...; end | While loop | all |
| switch; case; end | Switch statement | all |
| function name; end | Define function | all |
Variables
5| Shortcut | Description | Platform |
|---|---|---|
| set -x VAR value | Export variable | all |
| set -e VAR | Erase variable | all |
| $VAR | Use variable | all |
| set -U VAR value | Universal variable | all |
| set --show VAR | Show variable info | all |