Return to Snippet

Revision: 47265
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
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