Hi,
i recently learned about aliases in command line, so i tried to make some on my own.The problem is that i cant make them permanent, and in the next reboot they all get lost. e.g i type:
alias test='echo test @@@ test'
How can make them last.....
Thanks for your time, Nicolas Ang
On Sun, Oct 01, 2006 at 06:25:24AM +0300, nicolas angel wrote:
Hi,
i recently learned about aliases in command line, so i tried to make some on my own.The problem is that i cant make them permanent, and in the next reboot they all get lost. e.g i type:
alias test='echo test @@@ test'
How can make them last.....
Add them and other customizations to your ~/.bash_profile. For more details, "info bash" or "man bash" and look for the section on how bash reads its startup files.
On Sat, 2006-09-30 at 22:32 -0600, Charles Curley wrote:
Add them and other customizations to your ~/.bash_profile. For more details, "info bash" or "man bash" and look for the section on how bash reads its startup files.
Looking at the comments in ~/.bash_profile and ~/.bashrc it would seem that you're supposed to put them in the bash_rc file.
On Saturday 30 September 2006 23:25, nicolas angel wrote:
Hi,
i recently learned about aliases in command line, so i tried to make some on my own.The problem is that i cant make them permanent, and in the next reboot they all get lost. e.g i type:
alias test='echo test @@@ test'
How can make them last.....
Put them in *your* .bashrc, as in /home/youtheuser/.bashrc and they should then be available for you to use from any shell you start.
Thanks for your time, Nicolas Ang