Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sudo aliases & colors not showing up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Jul 21, 2013 5:20 pm    Post subject: sudo aliases & colors not showing up Reply with quote

http://askubuntu.com/questions/22037/aliases-not-available-when-using-sudo

ls gives me colors, su -c 'ls' & sudo do not, root $ ls gives colors also. id like persistent behavior because im a lunatic.
Back to top
View user's profile Send private message
defer-
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2007
Posts: 140
Location: Finland

PostPosted: Sun Jul 21, 2013 6:41 pm    Post subject: Reply with quote

Add the following to your ~/.bashrc :

Code:
alias sudo='sudo '
alias su='su '

_________________
https://github.com/defer-
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Jul 21, 2013 6:55 pm    Post subject: Reply with quote

sudo alias worked, su didnt. thanks for your response, still open for reason of su -c 'ls' colors
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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