当用户进入Shell之后,系统按照以下步骤一次读取Shell配置。
1) reads /etc/profile
2) 如果~/.bash_profile存在, source .bash_profile;
如果~/.bashrc存在,source .bashrc;
如果~/.bash_login存在, source .bash_login;
如果~/.profile存在, source .profile。
因此需要加入诸如alias vi='vim'这样的配置时,可尝试采用以上的几种方法。
PS:vim的自动补齐变量名字功能可用CTRL+N。
rgmfnmqj 于 2007-11-20 11:14:18发表:
(o):tx 5:ty( 5:ty( 5:ty( 5:ty( 5:ty(