Tag Info

New answers tagged

2

The lines if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi mean if the file .bash_aliases exists then use it. In your case it doesn't exist so it's ignored. If you want to add to it just create the file. How you do that is up to you but I'd suggest gedit ~/.bash_aliases from the terminal. Add in any aliases you want, then save the file and open ...


1

As others have said, you may want to edit ~/.bashrc instead. Just want to mention that if you want the modified PATH to be available also in the graphical environment, you should edit ~/.profile rather than ~/.bashrc.


0

open .bachrc file and write it in it: type gedit ~/.bashrc in terminal copy and paste this line at the end of the file(one new line): PATH="$PATH:$HOME/.composer/vendor/bin" this way the path will be available every time you open terminal besides this, you can also store some variables. for example, add a="this a variable" add the end of file. this ...


1

You shoud write it in your ~/.bashrc not in your ~/.bach_profile, then it should work



Top 50 recent answers are included