Skip to content

Instantly share code, notes, and snippets.

@adalbertopita
Created August 10, 2018 19:53
Show Gist options
  • Save adalbertopita/507c9503744195d45d041c5dfb3eeb58 to your computer and use it in GitHub Desktop.
Save adalbertopita/507c9503744195d45d041c5dfb3eeb58 to your computer and use it in GitHub Desktop.
export CLICOLOR=1
export GREP_COLOR='1;37'
export GREP_OPTIONS='--color=auto'
export LSCOLORS=ExFxCxDxBxegedabagacad
# 30: Black | 31: Red | 32: Green | 33: Yellow | 34: Blue | 35: Purple | 36: Cyan | 37: White | green others...
# 0: Normal | 1: Bold
prompt() {
local CYAN='\[\033[0;36m\]'
local PURPLE='\[\033[0;35m\]'
local RED='\[\033[0;31m\]'
local WHITE='\[\033[0;37m\]'
local YELLOW='\[\033[0;33m\]'
local LIME_YELLOW=$(tput setaf 190)
local POWDER_BLUE=$(tput setaf 153)
local GRAY="\[\033[0;30m\]"
local LIGHT_GRAY="\[\033[1;30m\]"
local LIGHT_YELLOW="\[\033[1;33m\]"
local LIGHT_CYAN="\[\033[1;31m\]"
local LIGHT_WHITE="\[\033[1;37m\]"
local MAGENTA=$(tput setaf 5)
export PS1="${LIGHT_GRAY}\u${YELLOW}@ ${POWDER_BLUE}\w${LIME_YELLOW} \$(parse_git_branch) ${PURPLE}- \[\e[m\]\[\e[m\]"
}; prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
export NVM_DIR="/Users/adalberto/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/Users/adalberto/.sdkman"
[[ -s "/Users/adalberto/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/adalberto/.sdkman/bin/sdkman-init.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment