Browse Source

Nicer colors for my bash prompt

master
Noah Petherbridge 6 years ago
parent
commit
2dfd412312
  1. 6
      home/.bashrc
  2. 2
      home/bin/mednafen-zenity

6
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.

2
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(

Loading…
Cancel
Save