Skip to main content


Alias in Fish Shell


Hi Fish Shell users,

I have a question, I am trying to create a config file where I stored all my recurrent actions however it doesn't work. I don't understand why, the only hypothesis I have is that you have to create each command separated which will be pretty annoying.

┬─[devuan@devuan:~]─[03:27:34 PM]
╰─>$ ls .config/fish/functions/
aliases.fish  fish_prompt.fish
┬─[devuan@devuan:~]─[03:28:00 PM]
╰─>$ cat .config/fish/functions/aliases.fish 
### Alias

function updt --description 'alias updt sudo apt update'
    sudo apt update $argv;
end


function safe --description 'alias safe sudo apt upgrade'
    sudo apt upgrade $argv;
end

function full --description 'alias full sudo apt full-upgrade'
    sudo apt full-upgrade $argv;
end

function instl --description 'alias instl sudo apt install'
    sudo apt install $argv;
end

function asearch --description 'alias asearch apt search'
     apt search $argv;
end

function aasearch --description 'alias aa
... show more
#linux #shell #fishshell #gnu #opensource #freesoftware #bash alias fish shell linux

Daniel reshared this.

No one is fishing? 😥