1 |
$PS1 var: |
2 |
|
3 |
I think this should be the opposite, if the user isn't root let the user |
4 |
know who they are. |
5 |
|
6 |
And if they are root, give them the "supershell" without the user-name. |
7 |
|
8 |
|
9 |
if [ `/usr/bin/whoami` == 'root' ] ; then |
10 |
export PS1='\[\033[01;32;40m\]\u@\h \[\033[01;34;40m\]\W |
11 |
>\[\033[00m\]' |
12 |
export PATH=/sbin:/usr/sbin:$PATH |
13 |
else |
14 |
export PS1='\[\033[01;34;40m\]\W > \[\033[00m\]' |
15 |
export PATH=$PATH |
16 |
fi |
17 |
|
18 |
---------------------------------------------------------------------- |
19 |
|
20 |
ls alias: |
21 |
|
22 |
I think "alias ls='ls --color=auto'" should be in /etc/profile. |
23 |
|
24 |
Most other distros have it and besides, it's a lot more readable. |
25 |
|
26 |
I saw there were other aliases such as "alias d='ls --color'" but i've |
27 |
never used them. |
28 |
|
29 |
-- |
30 |
Morgan Christiansson |