Creating aliases in fish and bash shell - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Tutorials (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=21) +--- Thread: Creating aliases in fish and bash shell (/showthread.php?tid=6338) |
Creating aliases in fish and bash shell - Moltke - 08-02-2019 Hi everyone! Hope you're all having a nice life! Today I'd like to share with you how to create your aliases in fish as well as in bash shell. As some of you probably already know, aliases are like "nicknames" for those commands, often long, we use the most and by "aliasing" them we make them short. In bash, one creates aliases like this Code: alias install="sudo apt-get install" Code: nano .bash_aliases Code: . .bash_aliases Now, in fish aliases are created in a different way, for one they're not called aliases but functions and just like with bash aliases you can create them for temporary use or add them in the file .config/fish/config.fish if it doesn't exist create it Code: nano .config/fish/config.fish Code: function install Code: . .config/fish/config.fish Aliases are time savers since we don't have to type long commands once and again over and over. Hope you've liked the post and found it useful. Cheers! |