add alias fish shell 1

add alias fish shell

# Define alias in shell
alias rmi "rm -i"

# Define alias in config file
alias rmi="rm -i"

# This is equivalent to entering the following function:
function rmi
    rm -i $argv
end

# Then, to save it across terminal sessions:
funcsave rmi

Here is what the above code is Doing:
1. Define an alias in the current shell session.
2. Define an alias in the config file.
3. Define a function in the current shell session.
4. Save the function to the config file.

Similar Posts