Page 2 of 2

Re: [SOLVED] How to define bash aliases?

Posted: 25. Aug 2011, 04:07
by Atip
I have my aliases always in .bashrc and no problems that way.
like:
alias ll='ls -l'

Re: [SOLVED] How to define bash aliases?

Posted: 25. Aug 2011, 18:06
by toothandnail
john256 wrote:I found, however, that this don't work if the XFCE Terminal is set to run as a login shell. Does anybody know how to make bash_aliases to work in this case?

Edit: I need the option "Run command as login shell" because it enables colored output defined in ~/.dir_colors. If this can be accomplished without running the terminal as login shell, I would greatly appreciate hints in that direction.
Create a ~/.bash_profile which sources ~/.bashrc (which in turn will source ~/.bash_aliases). .bash_profile is executed (if it exists) when a login terminal is started.

Paul.

Re: [SOLVED] How to define bash aliases?

Posted: 25. Aug 2011, 22:26
by JRD
I always symlink .bashrc to .bash_profile.

Re: [SOLVED] How to define bash aliases?

Posted: 30. Aug 2011, 08:22
by john256
Thank you all for the suggestions!