tags:

views:

79

answers:

2

I would like to define some aliases in fish. Apparently it should be possible to define them in

~/.config/fish/functions

but they don't get auto loaded when I restart the shell. Any ideas?


p.s. if anyone is using or has used fish in the past I'd be interested to hear your comments as to whether it offers anything that bash does not.

+2  A: 

Maybe you should use ~/.config/fish/config.fish (fish's equivalent of .bashrc).

Bozhidar Batsov
Brilliant, thank you.
armandino
+2  A: 

This is how I define a new function foo, run it, and save it persistently.

sthorne@pearl~> function foo
                    echo 'foo was here'
                end
sthorne@pearl~> foo
foo was here
sthorne@pearl~> funcsave foo
Jerub
Thanks Jerub. For some reason after funcsave it gave me an error:troff: fatal error: can't open `/usr/share/fish/man/save_function.1': No such file or directory
armandino