I'm trying the fish shell, and it seems to run some functions I've defined in it's config file when I open a new fish tab. For example, if I have this function:
function foo
cd ~/
end
fish will go into an infinite loop as it constantly cd
's into my user directory and sources the file. But if I have this:
function foo
ls
end
fish won't show me the output of ls
. What is going on?