我最近开始使用 Fish shell。
echo $EDITOR回报vim
echo $EDITOR
vim
但是,当使用需要启动编辑器并在EDITOR环境变量中查找它的程序时,他们似乎找不到任何东西。
EDITOR
pass edit作为使用(来自https://www.passwordstore.org/ )时的示例,它返回
pass edit
vi: command not found(当 env 变量中未设置任何内容时,它使用 vi 作为后备EDITOR)
vi: command not found
我错过了什么?
shell environment-variables fish
environment-variables ×1
fish ×1
shell ×1