alias on fish shell code example

Example 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

Example 2: how to bypass an alias in fish shell

#Fish internally has no aliases.
#The alias thing you are executing is itself a function that simply 
#defines functions (see type alias).

#So if you want to skip an alias, use 
$ command thething 
or 
$ builtin thething.
# so for example if I want to skip my ls alias
$ command ls
# and you can always use a command like this to
$ /bin/ls