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/
┬─[devuan@devuan:~]─[03:28:00 PM]
╰─>$ cat .config/fish/functions/ 
### Alias

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

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

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

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

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

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? 😥