查看nano地址
which nano
output:
/usr/bin/nano
设置默认编辑器
nano ~/.bashrc
export EDITOR=nano
alias vi=/usr/bin/nano
. ~/.bashrc
原文地址:https://www.cnblogs.com/wswind/p/10164052.html
时间: 2024-10-01 00:17:10
查看nano地址
which nano
output:
/usr/bin/nano
设置默认编辑器
nano ~/.bashrc
export EDITOR=nano
alias vi=/usr/bin/nano
. ~/.bashrc
原文地址:https://www.cnblogs.com/wswind/p/10164052.html