Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 554086 | Differences between
and this patch

Collapse All | Expand All

(-)bash.orig/bashrc (-17 / +4 lines)
Lines 36-54 Link Here
36
# the history will halt the shell prompt until it's finished.
36
# the history will halt the shell prompt until it's finished.
37
#PROMPT_COMMAND='history -a'
37
#PROMPT_COMMAND='history -a'
38
38
39
# Change the window title of X terminals 
40
case ${TERM} in
41
	xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
42
		PS1='\[\033]0;\u@\h:\w\007\]'
43
		;;
44
	screen*)
45
		PS1='\[\033k\u@\h:\w\033\\\]'
46
		;;
47
	*)
48
		unset PS1
49
		;;
50
esac
51
52
use_color=false
39
use_color=false
53
40
54
# Set colorful PS1 only on colorful terminals.
41
# Set colorful PS1 only on colorful terminals.
Lines 76-84 Link Here
76
	fi
63
	fi
77
64
78
	if [[ ${EUID} == 0 ]] ; then
65
	if [[ ${EUID} == 0 ]] ; then
79
		PS1+='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
66
		PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
80
	else
67
	else
81
		PS1+='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
68
		PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
82
	fi
69
	fi
83
70
84
	alias ls='ls --color=auto'
71
	alias ls='ls --color=auto'
Lines 88-96 Link Here
88
else
75
else
89
	if [[ ${EUID} == 0 ]] ; then
76
	if [[ ${EUID} == 0 ]] ; then
90
		# show root@ when we don't have colors
77
		# show root@ when we don't have colors
91
		PS1+='\u@\h \W \$ '
78
		PS1='\u@\h \W \$ '
92
	else
79
	else
93
		PS1+='\u@\h \w \$ '
80
		PS1='\u@\h \w \$ '
94
	fi
81
	fi
95
fi
82
fi
96
83
(-)bash.orig/bashrc.d/00window-title.sh (+9 lines)
Line 0 Link Here
1
# Change the window title of X terminals
2
case ${TERM} in
3
	xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
4
		PS1='\[\033]0;\u@\h:\w\007\]'"$PS1"
5
		;;
6
	screen*)
7
		PS1='\[\033k\u@\h:\w\033\\\]'"$PS1"
8
		;;
9
esac

Return to bug 554086