Change default editor to VIM
(for example, I need to use vim for systemctl edit
)
vim ~/.bashrc
>
export VISUAL=vim
export EDITOR="$VISUAL"
source ~/.bashrc
sudo update-alternatives --config editor
Or, for temporary setting:
export VISUAL=vim
systemctl edit some.service
BTW:
- 通过
systemctl edit
修改的东西,应该是 ‘添加‘ 进相应的 service 的 config 里面了。具体什么时候是 override,什么时候是 append,确实也不是很清楚。但是只骚针对 proxmox-backup.service 上面添加 nfs mount 作为 Requires 和 After,都是 append,而不是 override。