可以将zsh
shell配置为显示bash
命令不存在时显示的内容,类似于以下内容:
kahless:~$ sysv-rc-conf
The program 'sysv-rc-conf' is currently not installed. You can install it by typing:
sudo apt-get install sysv-rc-conf
而不是ZSH提示:
[kahless /home/teward]% sysv-rc-conf
zsh: command not found: sysv-rc-conf
注意我不想更改提示本身,但是我想要将结果从zsh: command not found
更改为bash The program 'progname' is currently not installed. You can install it by typing:
或类似的输出。
ZSH有可能吗?
The program 'progname' is currently not installed. You can install it by typing:
)zsh: command not found: sysv-rc-conf