Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #### INSTRUCTIONS ####
  2. #
  3. # 1) Add the contents of this file to your .bash_profile in your home directory
  4. # 2) Save .emojis in your home directory
  5. # 3) Profit
  6.  
  7. #### EMOJI PROMPT ##########################################
  8. # This picks a random emoji from your '.emojis' file!
  9. ORIGINAL_IFS=$IFS
  10. IFS=$'\n' read -d '' -r -a emojis < ~/.emojis
  11. emoji=`echo -e ${emojis[$RANDOM % ${#emojis[@]} ]}`
  12. IFS=$ORIGINAL_IFS
  13.  
  14. # Use $emoji in the terminal prompt - customise to suit your taste
  15. export PS1=$'$emoji \\[\e[32m\]\W\\[\e[0m\]$ '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement