Posted By


zachharkey on 10/27/10

Tagged


Statistics


Viewed 120 times
Favorited by 0 user(s)

.bash_profile for webenabled vps


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # .bash_profile
  2.  
  3. # Get the aliases and functions
  4. if [ -f ~/.bashrc ]; then
  5. . ~/.bashrc
  6. fi
  7.  
  8. # User specific environment and startup programs
  9.  
  10. PATH=$PATH:$HOME/bin
  11. BASH_ENV=$HOME/.bashrc
  12. USERNAME=""
  13.  
  14. # Custom colors
  15.  
  16. BLACK="\[\033[0;30m\]"
  17. BLACK_B="\[\033[1;30m\]"
  18. RED="\[\033[0;31m\]"
  19. RED_B="\[\033[1;31m\]"
  20. GREEN="\[\033[0;32m\]"
  21. GREEN_B="\[\033[1;32m\]"
  22. YELLOW="\[\033[0;33m\]"
  23. YELLOW_B="\[\033[1;33m\]"
  24. BLUE="\[\033[0;34m\]"
  25. BLUE_B="\[\033[1;34m\]"
  26. PURPLE="\[\033[0;35m\]"
  27. PURPLE_B="\[\033[1;35m\]"
  28. CYAN="\[\033[0;36m\]"
  29. CYAN_B="\[\033[1;36m\]"
  30. WHITE="\[\033[0;37m\]"
  31. WHITE_B="\[\033[1;37m\]"
  32. CLEAR="\[\033[0m\]"
  33.  
  34. # Custom prompt
  35.  
  36. if [ "0$BASH_VERSINFO" -ge 2 ]; then
  37. PS1="${WHITE_B}[${YELLOW}\u${CLEAR}@${GREEN}\h${YELLOW}:${CLEAR}\w${WHITE_B}]${GREEN}\$${CLEAR} "
  38. fi
  39.  
  40.  
  41. export USERNAME BASH_ENV PATH
  42.  
  43.  
  44.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.