Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### INSTRUCTIONS ####
- #
- # 1) Add the contents of this file to your .bash_profile in your home directory
- # 2) Save .emojis in your home directory
- # 3) Profit
- #### EMOJI PROMPT ##########################################
- # This picks a random emoji from your '.emojis' file!
- ORIGINAL_IFS=$IFS
- IFS=$'\n' read -d '' -r -a emojis < ~/.emojis
- emoji=`echo -e ${emojis[$RANDOM % ${#emojis[@]} ]}`
- IFS=$ORIGINAL_IFS
- # Use $emoji in the terminal prompt - customise to suit your taste
- export PS1=$'$emoji \\[\e[32m\]\W\\[\e[0m\]$ '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement