1.设置vim编辑器的行号,颜色等
vim .vimrc
set number set dictionary +=/usr/include set ts=4 syntax on set hlsearch set cursorline set fileencodings=ucs-bom,utf-8,GB18030,gbk vim .bashrc export PS1="\[\e[32;1m\][\u@\h \w\a]$>\[\e[0m\]"
当使用Linux修改环境变量时,不小心误删bsahrc文件可使用下面的命令恢复
cp /etc/skel/.bashrc ~ //恢复bashrc文件
转载请注明原文地址: https://www.6miu.com/read-9713.html