Skip to content

Instantly share code, notes, and snippets.

@costa86
Last active October 8, 2021 21:48
Show Gist options
  • Save costa86/df0c3e64b417ffed279f5f1ef527b233 to your computer and use it in GitHub Desktop.
Save costa86/df0c3e64b417ffed279f5f1ef527b233 to your computer and use it in GitHub Desktop.
fish shell - define aliases and functions
fish
1.Create ~/.config/fish/config.fish
2.Set aliases here
3.Restart fish
----------
One-line solution for defining and saving an alias (for example): alias cl 'clear' -s. Instantly works across all sessions and is persisted.
Navigate to the ~/.config/fish/functions/ and you'll see cl.fish file.
------------------
Functions in this dir are auto-loaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment