Skip to main content
better title and description
Source Link
RSFalcon7
  • 4.5k
  • 6
  • 33
  • 57

How to create a permanent alias without resourcing the .bashrc-like file?

I really like bash aliases, it annoys me that if I define in the shell it is only available for the session and ifevery time I addwant to some of bash resource filesadd a new alias I need to reload that file.have type two commands:

echo "alias \"short-cmd\"='long-command'" >> ~/.bash_aliases
source ~/.bash_aliases

Any ideasway I can create an alias permanently with a single command?

How to create a permanent alias?

I really like bash aliases, it annoys me that if I define in the shell it is only available for the session and if I add to some of bash resource files I need to reload that file.

Any ideas?

How to create a permanent alias without resourcing the .bashrc-like file?

I really like bash aliases, it annoys me that every time I want to add a new alias I have type two commands:

echo "alias \"short-cmd\"='long-command'" >> ~/.bash_aliases
source ~/.bash_aliases

Any way I can create an alias permanently with a single command?

Source Link
RSFalcon7
  • 4.5k
  • 6
  • 33
  • 57

How to create a permanent alias?

I really like bash aliases, it annoys me that if I define in the shell it is only available for the session and if I add to some of bash resource files I need to reload that file.

Any ideas?