Skip to content

Where do I find functions' source code #9184

Closed Answered by faho
aleemont asked this question in Q&A
Discussion options

You must be logged in to vote

If you mean you removed fish's stock alias function: https://github.com/fish-shell/fish-shell/blob/master/share/functions/alias.fish, or reinstall your package.

Note that if you fiddled in /usr/share/fish/functions (where the function is stored by default): Don't, that's a terrible idea. If you instead saved a new version of alias: Just delete that file, e.g. ~/.config/fish/functions/alias.fish. Fish looks up functions by going through the directories in $fish_function_path and picks the first matching one. If you saved a new version it'll just shadow the other file.

If you mean you removed a specific function: That's up to you. Fish stores functions when you tell them to, for example by …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by faho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants