From 2dfd412312ead645ab2162736f6b1408b1a26060 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sat, 18 Jul 2015 16:57:52 -0700 Subject: [PATCH] Nicer colors for my bash prompt --- home/.bashrc | 6 +++++- home/bin/mednafen-zenity | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/home/.bashrc b/home/.bashrc index 7f3f571..eb1a243 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -62,6 +62,10 @@ WHITE='\e[1;37m' BOLD='\e[1m' NC='\e[0m' # No Color +# Some 256-colors colors +LBLUE="\e[38;5;39m" +PINK="\e[38;5;213m" + function showcolors() { echo -e "$BLACK BLACK $NAVY NAVY $GREEN GREEN $TEAL TEAL" echo -e "$MAROON MAROON $PURPLE PURPLE $BROWN BROWN $SILVER SILVER" @@ -87,7 +91,7 @@ git_branch() { fi } 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 # For non-Fedora environments be sure the PROMPT_COMMAND sets the title bar. diff --git a/home/bin/mednafen-zenity b/home/bin/mednafen-zenity index 6899d21..31ff373 100755 --- a/home/bin/mednafen-zenity +++ b/home/bin/mednafen-zenity @@ -15,7 +15,7 @@ chomp $rom; print "Selected: $rom\n"; # 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) { # Launch Mednafen. exec(