In fishshell, I can create and save a function very easy, like:
function aaa
echo hello
end
funcsave aaa
But how to view the body of the function aaa
from command line easily? Is there any way other than:
echo ~/.config/fish/functions/aaa.fish
functions aaa
on command lineusername@MacBook-Pro ~> functions aaa
function aaa
echo hello
end
username@MacBook-Pro ~>
functions -n
# Displays a list of currently-defined functions
functions -c foo bar
# Copies the 'foo' function to a new function called 'bar'
functions -e bar
# Erases the function `bar`