Fish
Install
Install fish via homebrew
Set fish as default shell
Default fish config folder location
Completions
Update man page completions
Functions
List available fish functions
Show source for specific function (type
provides syntax highlighting)
List Builtin function names
Environment
Set environment variable for command
Abbreviations
Add (-a
) global (-g
) abbreviation
Add (-a
) global (-g
) abbreviation and set cursor position
List full abbreviations or abbreviation names
Remove abbreviation
Rename abbreviation
Command History
Show all command history items
Clear all command history items
Limit history results (show count
most recent entries, eg. -5
five entries)
Include timestamp of command in history output
Show history matching filter and string criteria (optionally limit to -n
results)
Delete history matching filter and string criteria
History result filters
Set filter string to be case sensitive
List history entries that contain the specified string
Delete history entries that contain the specified string
Search command history from string using grep
Private Mode
Use private mode for running commands with tokens or other context that should not be persisted to history
String Functions
Search and replace string content (-r
for regex)
Last updated