在debian设置vim颜色与SecureCRT的颜色设置方法讲过怎么设置vim的颜色。但是如果要改系统的文件及文件夹的颜色呢?
这时需要更改”.bashrc”这个文件,我的.bashrc文件是以下这样的..
root@debian:~# vi /root/.bashrc # ~/.bashrc: executed by bash(1) for non-login shells. #export PS1='\h:\w\$ ' export PS1='\[\033[1;32;40m\]\u@\h:\w\$ \[\033[0m\]' umask 022 # You may uncomment the following lines if you want `ls' to be colorized: export LS_OPTIONS='--color=auto' eval "`dircolors`" alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' # # Some more alias to avoid making mistakes: # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i'
改完要退出再登陆,就可以看到了。SecureCRT也是如此。
source /root/.bashrc 可以重读配置就不需推出session
主人回复:哇,billy果然很厉害哦!