I have my aliases always in .bashrc and no problems that way.
like:
alias ll='ls -l'
[SOLVED] How to define bash aliases?
-
- Posts: 165
- Joined: 20. Sep 2009, 17:30
- Location: Oxfordshire, UK
Re: [SOLVED] How to define bash aliases?
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.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.
Paul.
Re: [SOLVED] How to define bash aliases?
I always symlink .bashrc to .bash_profile.
Re: [SOLVED] How to define bash aliases?
Thank you all for the suggestions!