使 Konsole 默认为登录 shell

lol*_*lov 6 kde command-line konsole kubuntu

我首先不知道为什么会有“登录”和“非登录”shell,我也不是很想知道。

事实上,我经常使用的RVMNVM软件需要登录 shell,而 Konsole 启动一个非登录 shell。

这迫使我bash -l每次启动 Konsole 时都提交一个 命令。

如何让 Konsole 默认以登录 shell 模式启动?

bai*_*ain 14

Konsole 手册:

Konsole 没有为运行登录 shell 提供便利,因为开发人员不喜欢在终端模拟器中运行登录 shell 的想法。

当然,如果确实需要,用户仍然可以在 Konsole 中运行登录 shell。编辑正在使用的配置文件并将其命令修改为显式启动登录 shell 的形式,例如“bash -l”和“zsh -l”。

  • 可能是因为登录 shell 应该是您登录时运行的 shell,而不是每次打开新终端时运行的 shell。[登录 Shell 和非登录 Shell 之间的区别?](http://unix.stackexchange.com/questions/38175/difference- Between-login-shell-and-non-login-shell) (2认同)