In fish shell, type the following commands:
- use alias
define alias in .config/fish/config.fish1
alias foo 'bar'
- use functionYou should see a file foo.fish under ~/.config/fish/functions/
1
2
3
4$ function foo
command echo 'foo was here' $argv
end
$ funcsave foo