Tell ls to be colorful
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
To display git repo status with colors and branch name
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
parse_git_dirty(){
[[ -n "$(git status -s 2> /dev/null)" ]] && echo "*"
}
export PS1="\W\[\033[0;32m\]\$(parse_git_branch)\$(parse_git_dirty)\[\033[00m\] $ "
bash auto completion
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
Display conda env info
# added by Anaconda3 5.1.0 installer
# export PATH="/Users/atma6951/anaconda3/bin:$PATH" # commented out by conda initialize
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/atma6951/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/atma6951/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/atma6951/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/atma6951/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<