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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use
alias. Here’s a basic example:The command
funcsavecreates the file~/.config/fish/functions/rmi.fish. This is handled automatically when using the neweralias --savesyntax.More info about Fish aliases can be found in the official manual.