Created
March 3, 2011 11:07
-
-
Save mrosset/852628 to your computer and use it in GitHub Desktop.
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
| # Test for an interactive shell. There is no need to set anything | |
| # past this point for scp and rcp, and it's important to refrain from | |
| # outputting anything in those cases. | |
| if [[ $- != *i* ]] ; then | |
| # Shell is non-interactive. Be done now! | |
| return | |
| fi | |
| source ~/bin/key | |
| source ~/.bash/functions | |
| source ~/.bash/alias | |
| #ENV variables | |
| _cd_paths=( './' '~/' '../' '~/git' '~/src' '~/downloads/' ) | |
| #ENV variables | |
| for i in ${_cd_paths[@]} | |
| do | |
| CDPATH+="$i:" | |
| done | |
| export CLICOLOR=1 | |
| export EDITOR=vim | |
| export GREP_OPTIONS="--color" | |
| export GREP_COLOR="1;34" | |
| export LESS=FRSX | |
| PROMPT_COMMAND=prompt_command | |
| GIT_PS1_SHOWDIRTYSTATE=true | |
| GIT_PS1_SHOWSTASHSTATE=true | |
| GIT_PS1_SHOWUNTRACKEDFILES=true | |
| GIT_PS1_SHOWUPSTREAM="auto verbose" | |
| #go related | |
| export GOROOT=$HOME/go | |
| if [[ $(uname) = "Darwin" ]]; then | |
| export GOARCH=amd64 | |
| export GOOS=darwin | |
| else | |
| export GOARCH=386 | |
| export GOOS=linux | |
| fi | |
| if [[ $(uname) = "Darwin" ]]; then | |
| _dircolors=gdircolors | |
| else | |
| _dircolors=dircolors | |
| fi | |
| eval $($_dircolors -b) | |
| #shopt's | |
| shopt -s checkwinsize | |
| shopt -s cdspell | |
| #run functions | |
| prompt_colors | |
| bash_prompt | |
| if [[ $(uname) = "Darwin" ]]; then | |
| source $(brew --prefix)/etc/bash_completion | |
| else | |
| source /etc/bash_completion | |
| fi | |
| #dynamic aliases | |
| if [[ $(uname) = "Darwin" ]]; then | |
| _ls=/usr/local/bin/gls | |
| else | |
| _ls=/bin/ls | |
| fi | |
| _gnucolor="--color=auto" | |
| alias ls="$_ls --indicator-style=file-type $_gnucolor --group-directories-first --time=ctime" | |
| alias grep="grep $_gnucolor" | |
| alias git="git-achievements" | |
| alias goinstall="goinstall -dashboard=false" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment