Summary: | redhat style prompt command | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matthew Kennedy (RETIRED) <mkennedy> |
Component: | [OLD] Core system | Assignee: | Martin Schlemmer (RETIRED) <azarah> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | naz, seemant |
Priority: | High | ||
Version: | 1.1a | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://www.gentoo.org/~mkennedy/redhat-style-ps1.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Matthew Kennedy (RETIRED)
![]() in fact, it works if TERM=rxvt as well I'll check for TERM=Eterm soon Are there other term types? azarah@nosferatu gentoo-src $ cat rc-scripts/etc/skel/.bashrc # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.4 2002/06/30 01:18:55 azarah Exp $ # This file is sourced by all bash shells on startup, whether interactive # or not. This file *should generate no output* or it will break the # scp and rcp commands. # Change the window title of X terminals case $TERM in xterm*|rxvt) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' ;; screen) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' ;; esac ##uncomment the following to activate bash-completion: #[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion azarah@nosferatu gentoo-src $ Just tell me what additional XTERM's it works for. *** This bug has been marked as a duplicate of 4232 *** |