Skip to content
Permalink
Browse files

Show random emoji on the bash prompt.

  • Loading branch information...
Shuhei Kagawa
Shuhei Kagawa committed Jun 26, 2015
1 parent 3143116 commit a45d8c88d4c02737dad397b56624895bb715f5b5
Showing with 12 additions and 1 deletion.
  1. +12 −1 .bash_profile
@@ -5,7 +5,18 @@ export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

# Colorful prompt
export PS1="[\[\e[0;37m\]\u@\h\[\e[0;33m\] \W\[\e[m\]]$ "
if [ "$(uname)" == "Darwin" ]; then
emojis[0]="🍺"
emojis[1]="🍜"
emojis[2]="🍣"
emojis[3]="🌴"
emojis[4]="🎪"
rand=$[ $RANDOM % 5 ]
emoji=${emojis[$rand]}
export PS1="\[\e[0;37m\]\W\[\e[m\] ${emoji} "
else
export PS1="\[\e[0;37m\]\W\[\e[0;33m\] $ \[\e[m\]"
fi

# Colorful grep
export GREP_OPTIONS='--color=auto'

0 comments on commit a45d8c8

Please sign in to comment.
You can’t perform that action at this time.