Guest User

Untitled

a guest
Apr 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. ### load extenstions ###
  2.  
  3. source "$HOME/.git-completion.bash"
  4. source "$HOME/.git-prompt.sh"
  5.  
  6. ### ENV variables ###
  7.  
  8. # look for commands in these places
  9. export PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH"
  10. export PATH="$HOME/.rbenv/bin:$PATH"
  11. export PATH="/usr/local/heroku/bin:$PATH"
  12. export PATH="$HOME/.bin:$PATH"
  13. export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
  14.  
  15.  
  16. # make vim the default text editor
  17. export EDITOR="vim"
  18.  
  19. # shortened prompt that includes git branch info
  20. RED='\[\e[0;31m\]'
  21. WHITE='\[\e[1;37m\]'
  22. RESET='\[\e[0m\]'
  23. export PS1="$RED\w$WHITE\$(__git_ps1)$RED\$$RESET "
  24.  
  25. ### other ###
  26.  
  27. # initialize rbenv
  28. eval "$(rbenv init -)"
  29.  
  30. # initialize node version manager
  31. export NVM_DIR="$HOME/.nvm"
  32. [ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
  33.  
  34. # load aliases
  35. [[ -f "$HOME/.aliases" ]] && source "$HOME/.aliases"
  36.  
  37. # load any local configuration
  38. [[ -f "$HOME/.bashrc.local" ]] && source "$HOME/.bashrc.local"
  39.  
  40.  
  41.  
  42. ############### COLORS ###################
  43. # Reset
  44. Color_Off="\[\033[0m\]" # Text Reset
  45.  
  46. # Regular Colors
  47. Black="\[\033[0;30m\]" # Black
  48. Red="\[\033[0;31m\]" # Red
  49. Green="\[\033[0;32m\]" # Green
  50. Yellow="\[\033[0;33m\]" # Yellow
  51. Blue="\[\033[0;34m\]" # Blue
  52. Purple="\[\033[0;35m\]" # Purple
  53. Cyan="\[\033[0;36m\]" # Cyan
  54. White="\[\033[0;37m\]" # White
  55.  
  56. # Bold
  57. BBlack="\[\033[1;30m\]" # Black
  58. BRed="\[\033[1;31m\]" # Red
  59. BGreen="\[\033[1;32m\]" # Green
  60. BYellow="\[\033[1;33m\]" # Yellow
  61. BBlue="\[\033[1;34m\]" # Blue
  62. BPurple="\[\033[1;35m\]" # Purple
  63. BCyan="\[\033[1;36m\]" # Cyan
  64. BWhite="\[\033[1;37m\]" # White
  65.  
  66. # Underline
  67. UBlack="\[\033[4;30m\]" # Black
  68. URed="\[\033[4;31m\]" # Red
  69. UGreen="\[\033[4;32m\]" # Green
  70. UYellow="\[\033[4;33m\]" # Yellow
  71. UBlue="\[\033[4;34m\]" # Blue
  72. UPurple="\[\033[4;35m\]" # Purple
  73. UCyan="\[\033[4;36m\]" # Cyan
  74. UWhite="\[\033[4;37m\]" # White
  75.  
  76. # Background
  77. On_Black="\[\033[40m\]" # Black
  78. On_Red="\[\033[41m\]" # Red
  79. On_Green="\[\033[42m\]" # Green
  80. On_Yellow="\[\033[43m\]" # Yellow
  81. On_Blue="\[\033[44m\]" # Blue
  82. On_Purple="\[\033[45m\]" # Purple
  83. On_Cyan="\[\033[46m\]" # Cyan
  84. On_White="\[\033[47m\]" # White
  85.  
  86. # High Intensty
  87. IBlack="\[\033[0;90m\]" # Black
  88. IRed="\[\033[0;91m\]" # Red
  89. IGreen="\[\033[0;92m\]" # Green
  90. IYellow="\[\033[0;93m\]" # Yellow
  91. IBlue="\[\033[0;94m\]" # Blue
  92. IPurple="\[\033[0;95m\]" # Purple
  93. ICyan="\[\033[0;96m\]" # Cyan
  94. IWhite="\[\033[0;97m\]" # White
  95.  
  96. # Bold High Intensty
  97. BIBlack="\[\033[1;90m\]" # Black
  98. BIRed="\[\033[1;91m\]" # Red
  99. BIGreen="\[\033[1;92m\]" # Green
  100. BIYellow="\[\033[1;93m\]" # Yellow
  101. BIBlue="\[\033[1;94m\]" # Blue
  102. BIPurple="\[\033[1;95m\]" # Purple
  103. BICyan="\[\033[1;96m\]" # Cyan
  104. BIWhite="\[\033[1;97m\]" # White
  105.  
  106. # High Intensty backgrounds
  107. On_IBlack="\[\033[0;100m\]" # Black
  108. On_IRed="\[\033[0;101m\]" # Red
  109. On_IGreen="\[\033[0;102m\]" # Green
  110. On_IYellow="\[\033[0;103m\]" # Yellow
  111. On_IBlue="\[\033[0;104m\]" # Blue
  112. On_IPurple="\[\033[10;95m\]" # Purple
  113. On_ICyan="\[\033[0;106m\]" # Cyan
  114. On_IWhite="\[\033[0;107m\]" # White
  115.  
  116. # Various variables you might want for your PS1 prompt instead
  117. Time12h="\T"
  118. Time12a="\@"
  119. PathShort="\w"
  120. PathFull="\W"
  121. NewLine="\n"
  122. Jobs="\j"
  123. ######################################
  124.  
  125.  
  126. ########################## GIT setup ####################
  127. parse_git_branch() {
  128. git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
  129. }
  130.  
  131. export PS1=$Blue$Time12h' '$Green$PathShort$Red'$(parse_git_branch) '$Blue'-> '$Color_Off
Add Comment
Please, Sign In to add comment