View previous topic :: View next topic |
Author |
Message |
bjlockie Veteran
Joined: 18 Oct 2002 Posts: 1186 Location: Canada
|
Posted: Sat Oct 19, 2002 6:28 pm Post subject: alias |
|
|
I want to add an alias that shows up in my shell when I login and my shell under KDE.
alias ll='ls -l'
Where do I put it?
I've tried ~/.profile, ~/.bash_profile, ~/.bashrc |
|
Back to top |
|
|
Milez Tux's lil' helper
Joined: 21 Aug 2002 Posts: 116 Location: Atlanta, GA
|
Posted: Sat Oct 19, 2002 6:59 pm Post subject: |
|
|
Put it at the end of /etc/profile. I have the same alias there and it works for all my users. However, there could be some weird issue with kdm (I'm assuming that's what you're using to log in) reading from a different file. Write back if it works. _________________ -=Miles Stoudenmire=-
Adopt a post initiative |
|
Back to top |
|
|
bjlockie Veteran
Joined: 18 Oct 2002 Posts: 1186 Location: Canada
|
Posted: Sat Oct 19, 2002 8:26 pm Post subject: |
|
|
Putting it in /etc/profile worked, thanks. |
|
Back to top |
|
|
Milez Tux's lil' helper
Joined: 21 Aug 2002 Posts: 116 Location: Atlanta, GA
|
Posted: Sat Oct 19, 2002 9:49 pm Post subject: |
|
|
Sure, no problem. _________________ -=Miles Stoudenmire=-
Adopt a post initiative |
|
Back to top |
|
|
bjlockie Veteran
Joined: 18 Oct 2002 Posts: 1186 Location: Canada
|
Posted: Tue Oct 22, 2002 6:07 am Post subject: |
|
|
It worked on the latest Gentoo machin I installed but not one I did earlier.
I created a ~/.bashrc and that worked.
# more ~/.bashrc
alias ll='ls -l'
# tail /etc/profile
alias ll='ls -l'
Looks the same to me.
Maybe it works for users but not root. |
|
Back to top |
|
|
|