Last active
October 11, 2017 21:36
-
-
Save timc13/635fe811fcdc29454a93 to your computer and use it in GitHub Desktop.
osx profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COLOR_NC='\e[0m' # No Color | |
COLOR_WHITE='\e[1;37m' | |
COLOR_BLACK='\e[0;30m' | |
COLOR_BLUE='\e[0;34m' | |
COLOR_LIGHT_BLUE='\e[1;34m' | |
COLOR_GREEN='\e[0;32m' | |
COLOR_LIGHT_GREEN='\e[1;32m' | |
COLOR_CYAN='\e[0;36m' | |
COLOR_LIGHT_CYAN='\e[1;36m' | |
COLOR_RED='\e[0;31m' | |
COLOR_LIGHT_RED='\e[1;31m' | |
COLOR_PURPLE='\e[0;35m' | |
COLOR_LIGHT_PURPLE='\e[1;35m' | |
COLOR_BROWN='\e[0;33m' | |
COLOR_YELLOW='\e[1;33m' | |
COLOR_GRAY='\e[0;30m' | |
COLOR_LIGHT_GRAY='\e[0;37m' | |
HISTFILESIZE=10000000 | |
BREW_GIT="`brew --prefix git`/etc/bash_completion.d/git-prompt.sh" | |
CLT_GIT="/Library/Developer/CommandLineTools/usr/share/git-core/git-prompt.sh" | |
XCODE_GIT="/Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh" | |
if [[ -f $BREW_GIT ]]; then | |
source $BREW_GIT | |
elif [[ -f $CLT_GIT ]]; then | |
source $CLT_GIT | |
elif [[ -f $XCODE_GIT ]]; then | |
source $XCODE_GIT | |
fi | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
PS1="\[$COLOR_WHITE\][\[$COLOR_CYAN\]\d \t\[$COLOR_WHITE\]] \[$COLOR_LIGHT_GREEN\]\u\[$COLOR_WHITE\]@\[$COLOR_LIGHT_BLUE\]\h\[$COLOR_WHITE\]:\w\$(__git_ps1 ' [\[$COLOR_YELLOW\]%s\[$COLOR_WHITE\]]')\n$ \[$COLOR_NC\] " | |
source ~/.profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CLICOLOR=1 | |
export LSCOLORS=Gxfxcxdxbxegedabagacad | |
alias lsa="ls -lha" | |
alias du="du -chd 0" | |
alias df="df -h" | |
alias grep="grep --color=auto --exclude=*.pyc --exclude-dir=.git" | |
alias py=python | |
alias py2=python2 | |
alias psgrep="ps aux | grep $@" | |
alias venv="source env/bin/activate" | |
function backupfile() { cp $1 $1.$(date "+%Y-%m-%d-%H.%M.%S"); } | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment