Skip to content

Instantly share code, notes, and snippets.

View robvolk's full-sized avatar

Rob Volk robvolk

View GitHub Profile
@robvolk
robvolk / upgrade_vim.sh
Created August 9, 2017 15:27
Upgrade / Update Vim & all plugins
function upgrade-vim {
brew update
brew upgrade vim
cd ~/.vim/bundle
for i in `ls`; do
cd "$i"
git pull
cd ..
done
" Rob Volk's .vimrc, completely based off of " This is Rob Volk's .vimrc, completely based off of Gary Bernhardt's .vimrc file
" vim:set ts=2 sts=2 sw=2 expandtab:
autocmd!
call pathogen#infect('bundle/{}')
call plug#begin('~/.vim/plugged')
Plug 'prettier/vim-prettier', {
\ 'do': 'yarn install',
@robvolk
robvolk / .bash_profile.sh
Created August 21, 2018 16:58
Cleanup git branches
gitc() {
git fetch --prune
for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`;
do
git branch -D $branch
done;
git branch --merged master | grep -v '^*' | grep -v '^ master$' | xargs git branch -d
}