-
I accidentally removed alias function. I want to implement it again, any help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you mean you removed fish's stock 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 If you mean you removed a specific function: That's up to you. Fish stores functions when you tell them to, for example by running |
Beta Was this translation helpful? Give feedback.
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 …