/ Published in: Bash

This .bashrc snippet sets the PS1 prompt so the title will be displayed in screen's statusbar.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# STY is set by screen if [ -n "$STY" ]; then PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ \[\033k\]$(basename "\w")\[\033\\\]' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi
Comments
