Nicer colors for my bash prompt
This commit is contained in:
parent
104ec5c1ca
commit
2dfd412312
|
@ -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.
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user