Skip to content

Commit dbd89fd

Browse files
committed
bashrc: color variations
1 parent f52a483 commit dbd89fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bashrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ for c in {e,f,}grep {v,}dir ls; do alias $c="$c --color=auto"; done;
5454
# So they can be unset.
5555
# I need someone to help me assign those names properly.
5656
# Those are actually bold colors.
57-
_aosc_bashrc_colors='NORMAL RED GREEN CYAN IRED YELLOW'
57+
_aosc_bashrc_colors='NORMAL BOLD RED GREEN CYAN IRED YELLOW'
5858
NORMAL='\e[0m'
59+
BOLD='\e[1;37m'
5960
RED='\e[1;31m'
6061
GREEN='\e[1;32m'
6162
CYAN='\e[1;36m'
@@ -101,9 +102,9 @@ type _vcs_status &>/dev/null || ! echo _vcs_status not declared, making stub.. |
101102
# Well, forget it.
102103

103104
if [[ "$EUID" == 0 ]] ; then
104-
PS1="\[$RED\]\u@\h \[$NORMAL\][ \W\$(_vcs_status) ]\[$RED\] \$(_ret_prompt) \[$NORMAL\]"
105+
PS1="\[$RED\]\u\[$BOLD\]@\[$NORMAL\]\h [ \W\$(_vcs_status) ]\[$RED\] \$(_ret_prompt) \[$NORMAL\]"
105106
else
106-
PS1="\[$GREEN\]\u@\h \[$NORMAL\][ \W\$(_vcs_status) ]\[$GREEN\] \$(_ret_prompt) \[$NORMAL\]"
107+
PS1="\[$GREEN\]\u\[$BOLD\]@\[$NORMAL\]\h [ \W\$(_vcs_status) ]\[$GREEN\] \$(_ret_prompt) \[$NORMAL\]"
107108
fi
108109

109110

0 commit comments

Comments
 (0)