1. 命令行下指定编辑器vim加入环境变量
echo export EDITOR=/usr/bin/vim >> ~/.bashrc
或者也可手动修改~/.bashrc文件,在最后添加
export EDITOR=/usr/bin/vim >> ~/.bashrc
2.命令行下同步环境变量,立马生效
source ~/.bashrc
1. 命令行下指定编辑器vim加入环境变量
echo export EDITOR=/usr/bin/vim >> ~/.bashrc
或者也可手动修改~/.bashrc文件,在最后添加
export EDITOR=/usr/bin/vim >> ~/.bashrc
2.命令行下同步环境变量,立马生效
source ~/.bashrc