Bash+屏幕提示和标题(Debian)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Bash+屏幕提示和标题(Debian)相关的知识,希望对你有一定的参考价值。

This .bashrc snippet sets the PS1 prompt so the title will be displayed in screen's statusbar.
  1. # STY is set by screen
  2. if [ -n "$STY" ]; then
  3. PS1='${debian_chroot:+($debian_chroot)}[email protected]h:w$ [33k]$(basename "w")[33\]'
  4. else
  5. PS1='${debian_chroot:+($debian_chroot)}[email protected]h:w$ '
  6. fi

以上是关于Bash+屏幕提示和标题(Debian)的主要内容,如果未能解决你的问题,请参考以下文章