I search everywhere and almost everyone was suggesting to open the ~/.bashrc
or ~/.bash_aliases
, then put the alias command there, I created a function name palias
as permanent alias function and put it in ~/.bashrc
:
function palias(){ echo "alias $1='$2'" >> /home/User/.bashrc;}
So now if I want to permanently alias some command I just :
palias update "sudo apt-get update"
I wonder if there is a built in command like this function, or anything like this to install from repositories?