[SOLVED] How to define bash aliases?

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: [SOLVED] How to define bash aliases?

Post by Atip »

I have my aliases always in .bashrc and no problems that way.
like:
alias ll='ls -l'
toothandnail
Posts: 165
Joined: 20. Sep 2009, 17:30
Location: Oxfordshire, UK

Re: [SOLVED] How to define bash aliases?

Post 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.
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: [SOLVED] How to define bash aliases?

Post by JRD »

I always symlink .bashrc to .bash_profile.
Image
User avatar
john256
Posts: 89
Joined: 1. Jun 2011, 07:52

Re: [SOLVED] How to define bash aliases?

Post by john256 »

Thank you all for the suggestions!
Post Reply