Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export PATH=/usr/local/bin:/usr/local/sbin:$PATH
- export NVM_DIR="$HOME/.nvm"
- . "/usr/local/opt/nvm/nvm.sh"
- export PATH="$HOME/.rbenv/bin:$PATH"
- eval "$(rbenv init -)"
- if [ -f $(brew --prefix)/etc/bash_completion ]; then
- . $(brew --prefix)/etc/bash_completion
- fi
- function git_branch {
- git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\* \1/'
- }
- function prompt {
- local BLACK="\[\033[0;30m\]"
- local RED="\[\033[0;31m\]"
- local GREEN="\[\033[0;32m\]"
- local YELLOW="\[\033[0;33m\]"
- local BLUE="\[\033[0;34m\]"
- local PURPLE="\[\033[0;35m\]"
- local CYAN="\[\033[0;36m\]"
- local WHITE="\[\033[0;37m\]"
- local RESETCOLOR="\[\e[00m\]"
- export PS1="$BLUE\u$RESETCOLOR: \w $GREEN\$(git_branch)\n$YELLOW\$ "
- trap 'tput sgr0' DEBUG
- }
- prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement