Skip to content

Commit

Permalink
Show random emoji on the bash prompt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuhei Kagawa committed Jun 26, 2015
1 parent 3143116 commit a45d8c8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .bash_profile
Expand Up @@ -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'
Expand Down

0 comments on commit a45d8c8

Please sign in to comment.