Skip to content

Instantly share code, notes, and snippets.

@bryanwoods
Last active September 8, 2015 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanwoods/a9f119d34c80bd257622 to your computer and use it in GitHub Desktop.
Save bryanwoods/a9f119d34c80bd257622 to your computer and use it in GitHub Desktop.
Files
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
function parse_git_dirty {
local str=""
[[ $(git status 2> /dev/null) =~ "Changes not staged for commit" ]] && str+="\*"
[[ $(git status 2> /dev/null) =~ "Changes to be committed" ]] && str+="+"
echo $str
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
function kill_matching {
ps aux | grep -i $1 | awk '{print $2}' | xargs kill -9
}
export PS1='\[\033[0;35m\]\w\[\033[0m\]$(parse_git_branch)$ '
export PATH="$HOME/.rbenv/bin:$PATH"
export HISTFILESIZE=10000
# Add GHC 7.10.2 to the PATH, via https://ghcformacosx.github.io/
export GHC_DOT_APP="/Applications/ghc-7.10.2.app"
if [ -d "$GHC_DOT_APP" ]; then
export PATH="${HOME}/.local/bin:${HOME}/.cabal/bin:${GHC_DOT_APP}/Contents/bin:${PATH}"
fi
alias nw="/Applications/node-webkit.app/Contents/MacOS/node-webkit"
alias cdsim="cd /Users/bryan.woods/workspace/MultiScreenSDK-1.1.16-TVSimulator/mac/MultiScreenSDK-TV-Simulator-1.1.16.app/Contents/Resources/app.nw"
alias ws="cd ~/workspace"
alias ".."="cd .."
alias l="ls -lah"
execute pathogen#infect()
syntax on
filetype on
filetype plugin indent on
set background=dark
set nocompatible
let g:solarized_termcolors=256
let g:haskell_indent_case = 2
colorscheme solarized
set number
set guifont=Monaco:h18.00
set vb
set expandtab
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2
set expandtab
set shiftwidth=2
set softtabstop=2
~$ ls -lah ~/.vim/bundle/
total 0
drwxr-xr-x 12 woodsfamily staff 408B Aug 20 10:32 .
drwxr-xr-x 5 woodsfamily staff 170B Jan 10 2015 ..
drwxr-xr-x 9 woodsfamily staff 306B Feb 15 2015 ag
drwxr-xr-x 10 woodsfamily staff 340B Aug 20 10:32 haskell-vim
drwxr-xr-x 11 woodsfamily staff 374B Jan 10 2015 nerdtree
drwxr-xr-x 9 woodsfamily staff 306B Jan 10 2015 vim-bundler
drwxr-xr-x 8 woodsfamily staff 272B Jan 10 2015 vim-colors-solarized
drwxr-xr-x 6 woodsfamily staff 204B Jan 10 2015 vim-endwise
drwxr-xr-x 8 woodsfamily staff 272B Jan 11 2015 vim-fugitive
drwxr-xr-x 17 woodsfamily staff 578B Jun 25 09:17 vim-go
drwxr-xr-x 9 woodsfamily staff 306B Jan 10 2015 vim-rails
drwxr-xr-x 21 woodsfamily staff 714B Jan 10 2015 vim-ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment