Revision: 47265
Updated Code
at June 3, 2011 22:35 by ChloeD
Updated Code
# 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
Revision: 47264
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 3, 2011 22:33 by ChloeD
Initial Code
# 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
Initial URL
Initial Description
This .bashrc snippet sets the PS1 prompt so the title will be displayed in screen's statusbar.
Initial Title
Bash + Screen prompt and title (Debian)
Initial Tags
Bash, Development
Initial Language
Bash