Created
May 5, 2016 02:51
-
-
Save purplejacket/b9bc2dd8e3f0fe3431dc4f6e841dcd58 to your computer and use it in GitHub Desktop.
.bash_profile -- Mac OSX
This file contains hidden or 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
| alias l='ls -latr' | |
| alias l.='ls -ld .*' | |
| alias ll='ls -lhvrt' | |
| alias t='tree -d -L 1' | |
| alias ..='cd ..' | |
| alias ...='cd ../..' | |
| alias ....='cd ../../..' | |
| alias .....='cd ../../../..' | |
| alias ......='cd ../../../../..' | |
| alias .......='cd ../../../../../..' | |
| alias ........='cd ../../../../../../..' | |
| alias path='ruby -e "puts ENV[%{PATH}].gsub(/:/,%{\n}) # pretty print the PATH"' | |
| alias free_space='echo && df -m && echo && df -H && echo' | |
| alias gitjk="history 10 | tail -r | gitjk_cmd" | |
| alias hist='history | tail -n 15' | |
| HISTTIMEFORMAT='%F %T ' | |
| export HISTTIMEFORMAT | |
| export HISTCONTROL=ignoreboth | |
| export HISTSIZE=100000 | |
| # append to bash_history if Terminal.app quits | |
| shopt -s histappend | |
| export EDITOR='subl -w' | |
| alias cat=vimcat | |
| export LS_OPTIONS='--color=auto' | |
| # Cli Colors | |
| export CLICOLOR=1 | |
| # LSCOLORS from http://www.napolitopia.com/2010/03/lscolors-in-osx-snow-leopard-for-dummies/ | |
| export LSCOLORS='Bxgxfxfxcxdxdxhbadbxbx' | |
| export PATH=$PATH:~/bin # include my custom utilities | |
| export PATH=/usr/local/bin:$PATH # put homebrew path first | |
| export PATH=$PATH:/usr/local/sbin | |
| export PATH=$PATH:./node_modules/.bin | |
| export NVM_DIR="/Users/kai/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
| export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH" | |
| if [ -f `brew --prefix`/etc/bash_completion ]; then | |
| . `brew --prefix`/etc/bash_completion | |
| fi | |
| unset LESSOPEN | |
| unset LESSCLOSE | |
| # prompt - ideas come from http://blog.bigdinosaur.org/easy-ps1-colors/ | |
| function prompt { | |
| local BLACK="\[\033[0;30m\]" | |
| local BLACKBOLD="\[\033[1;30m\]" | |
| local RED="\[\033[0;31m\]" | |
| local REDBOLD="\[\033[1;31m\]" | |
| local GREEN="\[\033[0;32m\]" | |
| local GREENBOLD="\[\033[1;32m\]" | |
| local YELLOW="\[\033[0;33m\]" | |
| local YELLOWBOLD="\[\033[1;33m\]" | |
| local BLUE="\[\033[0;34m\]" | |
| local BLUEBOLD="\[\033[1;34m\]" | |
| local PURPLE="\[\033[0;35m\]" | |
| local PURPLEBOLD="\[\033[1;35m\]" | |
| local CYAN="\[\033[0;36m\]" | |
| local CYANBOLD="\[\033[1;36m\]" | |
| local WHITE="\[\033[0;37m\]" | |
| local WHITEBOLD="\[\033[1;37m\]" | |
| export PS1="\! $BLUEBOLD\u@$CYANBOLD\h$PURPLEBOLD\w$PURPLE$(__git_ps1)$GREEN\$ " # want to get this to work. | |
| export PS1="$CYAN\! $BLUEBOLD\u@$CYANBOLD\h$PURPLEBOLD\w $GREEN\$ " | |
| } | |
| prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment