简洁的想法

仁爱、喜乐、和平、忍耐、恩慈、良善、信实、温柔、节制

Ubuntu Root Shell Colorize

| Comments

vi /root/.bashrc

把注释去掉就可以了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export PS1='\[\e[33;1m\]\u\[\e[35;48m\]@\[\e[0m\]\[\e[34;48m\]\h:\[\e[32;48m\]\w\$ \[\e[0m\]'
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"


alias l='ls $LS_OPTIONS -lh'
alias ll='ls $LS_OPTIONS -lhtr'
alias la='ls $LS_OPTIONS -lAh'
alias lt='ls $LS_OPTIONS -lhtr'
alias ltt='ls $LS_OPTIONS -lAhtr'
alias lss='ls $LS_OPTIONS -Slhr'
alias ..='cd ..'
alias ...='cd .. && cd ..'


cd /etc/vim
vi vimrc
syntax on

Comments