Skip to content

Commit c85dc59

Browse files
Kevin XuKevin Xu
Kevin Xu
authored and
Kevin Xu
committedJan 14, 2015
uninstall/install, couple of customizations
1 parent 05c1c9a commit c85dc59

File tree

5 files changed

+38
-4
lines changed

5 files changed

+38
-4
lines changed
 

‎Rakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ namespace :install do
172172
task :macvim do
173173
step 'MacVim'
174174
unless app? 'MacVim'
175-
brew_cask_install 'macvim'
175+
brew_install 'macvim'
176176
end
177177

178178
bin_dir = File.expand_path('~/bin')
@@ -190,7 +190,7 @@ namespace :install do
190190
File.open(bin_vim, 'w', 0744) do |io|
191191
io << <<-SHELL
192192
#!/bin/bash
193-
exec /Applications/MacVim.app/Contents/MacOS/Vim "$@"
193+
exec /usr/bin/Vim "$@"
194194
SHELL
195195
end
196196
end

‎tmux.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ setw -g monitor-activity on
8989
set -g visual-activity on
9090

9191
# Enable native Mac OS X copy/paste
92-
set-option -g default-command "/bin/bash -c 'which reattach-to-user-namespace >/dev/null && exec reattach-to-user-namespace $SHELL -l || exec $SHELL -l'"
92+
set-option -g default-command "/bin/zsh -c 'which reattach-to-user-namespace >/dev/null && exec reattach-to-user-namespace $SHELL -l || exec $SHELL -l'"
9393

9494
# Allow the arrow key to be used immediately after changing windows
9595
set-option -g repeat-time 0

‎uninstall_brew.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/sh
2+
# Just copy and paste the lines below (all at once, it won't work line by line!)
3+
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
4+
5+
function abort {
6+
echo "$1"
7+
exit 1
8+
}
9+
10+
set -e
11+
12+
/usr/bin/which -s git || abort "brew install git first!"
13+
test -d /usr/local/.git || abort "brew update first!"
14+
15+
cd `brew --prefix`
16+
git checkout master
17+
git ls-files -z | pbcopy
18+
rm -rf Cellar
19+
bin/brew prune
20+
pbpaste | xargs -0 rm
21+
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
22+
test -d Library/LinkedKegs && rm -r Library/LinkedKegs
23+
rmdir -p bin Library share/man/man1 2> /dev/null
24+
rm -rf .git
25+
rm -rf ~/Library/Caches/Homebrew
26+
rm -rf ~/Library/Logs/Homebrew
27+
rm -rf /Library/Caches/Homebrew

‎vimrc

+7-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ set autoindent
2323
set autoread " reload files when changed on disk, i.e. via `git checkout`
2424
set backspace=2 " Fix broken backspace in some setups
2525
set backupcopy=yes " see :help crontab
26-
set clipboard=unnamed " yank and paste with the system clipboard
26+
set clipboard+=unnamed " yank and paste with the system clipboard
2727
set directory-=. " don't store swapfiles in the current directory
2828
set encoding=utf-8
2929
set expandtab " expand tabs to spaces
30+
set hlsearch
3031
set ignorecase " case-insensitive search
3132
set incsearch " search as you type
3233
set laststatus=2 " always show statusline
@@ -126,3 +127,8 @@ if filereadable(expand("~/.vimrc.local"))
126127
" noremap! jj <ESC>
127128
source ~/.vimrc.local
128129
endif
130+
131+
set visualbell
132+
set gfn=Monaco:h12
133+
set background=light
134+
colorscheme codeschool

‎vimrc.bundles

+1
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ Bundle 'vim-ruby/vim-ruby'
4040
Bundle 'vim-scripts/Align'
4141
Bundle 'vim-scripts/greplace.vim'
4242
Bundle 'vim-scripts/matchit.zip'
43+
Bundle 'flazz/vim-colorschemes'

0 commit comments

Comments
 (0)
Please sign in to comment.