Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
简单的问题:默认情况下它不显示当前路径,而只显示
bash-3.2$
我想知道是否可以配置 SublimeREPL 以显示当前路径(我当然可以使用pwd,但如果它自动显示在屏幕上会很棒)?
pwd
对于配置打开Preferences | Package Settings | SublimeREPL | Settings - User并尝试覆盖环境变量PS1:
Preferences | Package Settings | SublimeREPL | Settings - User
PS1
{ "default_extend_env": { "PS1": "\\w\\$" } }
需要重新启动 Shell 才能应用更改。