sudo select-editor

有时候在centos里面不起作用:

-bash: select-editor: 未找到命令

通过在.bashrc后指定编辑器即可:

echo export EDITOR=/usr/bin/vim >> ~/.bashrc
source ~/.bashrc
Last modification:December 13, 2022
V50%看看实力