Skip to content
FLAVIO COPES
flaviocopes.com
2026

Persist aliases and other configuration in Fish Shell

By Flavio Copes

Learn how to make Fish shell aliases and configuration persist across reboots by adding them to your ~/.config/fish/config.fish file.

~~~

Note to self: whenever making aliases in Fish (or any other config!), add them to the ~/.config/fish/config.fish file.

So they will be persisted after a system reboot.

For example I set ls to be an alias of exa and cat to be an alias of bat:

Fish config file showing aliases for ll, gs, and other commands, with workflow steps to edit, save, and reload configuration

Tagged: CLI · All topics
~~~

Related posts about cli: