Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alias
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Sat Oct 19, 2002 6:28 pm    Post subject: alias Reply with quote

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
View user's profile Send private message
Milez
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2002
Posts: 116
Location: Atlanta, GA

PostPosted: Sat Oct 19, 2002 6:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Sat Oct 19, 2002 8:26 pm    Post subject: Reply with quote

Putting it in /etc/profile worked, thanks.
Back to top
View user's profile Send private message
Milez
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2002
Posts: 116
Location: Atlanta, GA

PostPosted: Sat Oct 19, 2002 9:49 pm    Post subject: Reply with quote

Sure, no problem.
_________________
-=Miles Stoudenmire=-

Adopt a post initiative
Back to top
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Tue Oct 22, 2002 6:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum