1
0

Nicer colors for my bash prompt

This commit is contained in:
Noah 2015-07-18 16:57:52 -07:00
parent 104ec5c1ca
commit 2dfd412312
2 changed files with 6 additions and 2 deletions

View File

@ -62,6 +62,10 @@ WHITE='\e[1;37m'
BOLD='\e[1m' BOLD='\e[1m'
NC='\e[0m' # No Color NC='\e[0m' # No Color
# Some 256-colors colors
LBLUE="\e[38;5;39m"
PINK="\e[38;5;213m"
function showcolors() { function showcolors() {
echo -e "$BLACK BLACK $NAVY NAVY $GREEN GREEN $TEAL TEAL" echo -e "$BLACK BLACK $NAVY NAVY $GREEN GREEN $TEAL TEAL"
echo -e "$MAROON MAROON $PURPLE PURPLE $BROWN BROWN $SILVER SILVER" echo -e "$MAROON MAROON $PURPLE PURPLE $BROWN BROWN $SILVER SILVER"
@ -87,7 +91,7 @@ git_branch() {
fi fi
} }
if [ "$ENLIGHTENED" = '1' ]; then if [ "$ENLIGHTENED" = '1' ]; then
export PS1="\[$BOLD$BLUE\][\[$MAGENTA\]\u\[$BLUE\]@\[$MAGENTA\]\h \[$LIME\]\W\[$CYAN\]\$(git_branch)\[$BLUE\]\[$BLUE\]]\\$ \[$NC\]" export PS1="\[$BOLD$LBLUE\][\[$PINK\]\u\[$LBLUE\]@\[$PINK\]\h \[$LIME\]\W\[$CYAN\]\$(git_branch)\[$LBLUE\]\[$LBLUE\]]\\$ \[$NC\]"
fi fi
# For non-Fedora environments be sure the PROMPT_COMMAND sets the title bar. # For non-Fedora environments be sure the PROMPT_COMMAND sets the title bar.

View File

@ -15,7 +15,7 @@ chomp $rom;
print "Selected: $rom\n"; print "Selected: $rom\n";
# A selection? # A selection?
if (defined $rom && $rom =~ /\.(gb|gbc|gba|nes)/i) { if (defined $rom && $rom =~ /\.(gb|gbc|gba|nes|smc|sfc)/i) {
if (-f $rom) { if (-f $rom) {
# Launch Mednafen. # Launch Mednafen.
exec( exec(