Skip to content

Commit 3e02e3d

Browse files
author
David Bell
committed
2016 Annual Presets cleanup
1 parent f24fab2 commit 3e02e3d

File tree

9 files changed

+118
-100
lines changed

9 files changed

+118
-100
lines changed

BrewFile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
brew 'awscli'
2+
brew 'docker'
3+
brew 'docker-machine'
4+
brew 'docker-compose'
5+
brew 'git'
6+
brew 'hub'
7+
brew 'macvim'
8+
brew 'vim'
9+
brew 'unrar'
10+
brew 'tmux'
11+
brew 'zsh'
12+
brew 'zsh-syntax-highlighting'
13+
14+
brew 'ruby-build'
15+
brew 'rbenv'
16+
17+
brew 'rust'
18+
19+
brew 'haskell-stack'
20+
21+
brew 'maven'
22+
23+
brew 'go'
24+
brew 'bazel'

bootstrap

+13-87
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,11 @@
11
#!/bin/zsh
22

33
# move ourselves into the scripts directory
4-
canonical="$(dirname "$0")"
4+
canonical="$PWD"
55

66
# Defaults
77
ZSH_PATH=/usr/local/bin/zsh
88

9-
# Env arguments
10-
11-
taps=(
12-
caskroom/cask
13-
caskroom/versions
14-
caskroom/fonts
15-
)
16-
17-
binaries=(
18-
ack
19-
cabal-install
20-
coreutils
21-
findutils
22-
git
23-
hub
24-
leiningen
25-
maven
26-
mackup
27-
rbenv
28-
ruby-build
29-
tarsnap
30-
tree
31-
vim
32-
zsh
33-
zsh-syntax-highlighting
34-
)
35-
36-
apps=(
37-
alfred
38-
dropbox
39-
eclipse-java
40-
firefox
41-
flux
42-
google-chrome
43-
github
44-
intellij-idea
45-
iterm2
46-
macvim
47-
qlmarkdown
48-
rubymine
49-
skype
50-
spotify
51-
sublime-text3
52-
tarsnap
53-
transmission
54-
virtualbox
55-
vagrant
56-
)
57-
58-
# fonts
59-
fonts=(
60-
font-source-code-pro
61-
)
629

6310
# Try and install xcode if necessary
6411
if xcode-select -p &> /dev/null
@@ -72,40 +19,17 @@ fi
7219
# Install homebrew, and check the path
7320
if command -v brew &> /dev/null
7421
then
75-
print "Homebrew already installed, skipping"
22+
print "Homebrew already installed, cleaning..."
23+
brew uninstall --force `brew list`
7624
else
7725
print "Installing Homebrew"
7826
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
7927
brew update
8028
fi
8129

82-
for tap in $taps
83-
do
84-
brew tap $tap
85-
done
86-
87-
# Install homebrew cask
88-
if brew cask &> /dev/null
89-
then
90-
print "Homebrew Cask installed, skipping"
91-
else
92-
print "Installing Homebrew Cask"
93-
brew install caskroom/cask/brew-cask
94-
fi
95-
96-
# Install homebrew binaries
97-
print "installing binaries..."
98-
brew install ${binaries[@]}
99-
brew cleanup
100-
101-
# Install homebrew apps
102-
print "installing apps..."
103-
brew cask install --appdir="/Applications" ${apps[@]}
104-
105-
# Install homebrew fonts
106-
print "installing fonts..."
107-
#brew tap caskroom/fonts
108-
brew cask install ${fonts[@]}
30+
# Install Homebrew packages
31+
brew tap Homebrew/bundle
32+
brew bundle
10933

11034
# Set up zsh
11135
if ! grep "$ZSH_PATH" /etc/shells &> /dev/null
@@ -121,11 +45,13 @@ then
12145
fi
12246

12347
print "Linking dotfiles..."
124-
ln -s $canonical/dotfiles/vim $HOME/.vim
125-
ln -s $canonical/dotfiles/vimrc $HOME/.vimrc
126-
ln -s $canonical/dotfiles/vimrc.bundles $HOME/.vimrc.bundles
127-
ln -s $canonical/dotfiles/zshrc $HOME/.zshrc
128-
ln -s $canonical/dotfiles/zsh $HOME/.zsh
48+
echo $HOME
49+
ln -sf $canonical/dotfiles/gitconfig $HOME/.gitconfig
50+
ln -sf $canonical/dotfiles/vim $HOME/.vim
51+
ln -sf $canonical/dotfiles/vimrc $HOME/.vimrc
52+
ln -sf $canonical/dotfiles/vimrc.bundles $HOME/.vimrc.bundles
53+
ln -sf $canonical/dotfiles/zshrc $HOME/.zshrc
54+
ln -sf $canonical/dotfiles/zsh $HOME/.zsh
12955

13056
# Set up vim
13157
# print "Generating neobundle..."

config

Whitespace-only changes.

dotfiles/gitconfig

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[user]
2+
name = David Bell
3+
4+
[core]
5+
editor = vim
6+
whitespace = trailing-space,space-before-tab
7+
[web]
8+
browser = safari
9+
[instaweb]
10+
httpd = apache2 -f
11+
[rerere]
12+
enabled = 1
13+
autoupdate = 1
14+
[push]
15+
default = simple
16+
[color]
17+
ui = auto
18+
[color "branch"]
19+
current = yellow bold
20+
local = green bold
21+
remote = cyan bold
22+
[color "diff"]
23+
meta = yellow bold
24+
frag = magenta bold
25+
old = red bold
26+
new = green bold
27+
whitespace = red reverse
28+
[color "status"]
29+
added = green bold
30+
changed = yellow bold
31+
untracked = red bold
32+
[diff]
33+
tool = vimdiff
34+
[difftool]
35+
prompt = false
36+
[merge]
37+
tool = vimdiff
38+
[alias]
39+
co = checkout
40+
st = status

dotfiles/vim/.netrwhist

-5
This file was deleted.

dotfiles/vimrc

+16-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
filetype off
77
set rtp+=~/.vim/bundle/neobundle.vim/
88
call neobundle#begin(expand('~/.vim/bundle'))
9-
" NeoBundleFetch 'Shougo/neobundle.vim'
9+
NeoBundleFetch 'Shougo/neobundle.vim'
1010

1111
" }
1212

@@ -28,6 +28,9 @@
2828

2929
" }
3030

31+
" Update bundles
32+
NeoBundleCheck
33+
3134
" Settings {
3235

3336
" Define colorscheme
@@ -181,7 +184,7 @@
181184
let mapleader = ","
182185

183186
" Rebind for leaving insert mode
184-
inoremap jj <ESC>
187+
" inoremap jj <ESC>
185188

186189
" Rebind search to use magic mode
187190
nnoremap / /\v
@@ -243,9 +246,9 @@
243246

244247
" General {
245248

246-
au BufRead,BufNewFile *.* set tabstop=3
247-
au BufRead,BufNewFile *.* set shiftwidth=3
248-
au BufRead,BufNewFile *.* set softtabstop=3
249+
au BufRead,BufNewFile * set tabstop=3
250+
au BufRead,BufNewFile * set shiftwidth=3
251+
au BufRead,BufNewFile * set softtabstop=3
249252

250253
" }
251254

@@ -256,5 +259,13 @@
256259
au BufRead,BufNewFile *.rs set softtabstop=4
257260

258261
" }
262+
263+
" Ruby {
264+
265+
au BufRead,BufNewFile *.rb set tabstop=2
266+
au BufRead,BufNewFile *.rb set shiftwidth=2
267+
au BufRead,BufNewFile *.rb set softtabstop=2
268+
269+
" }
259270

260271
" }

dotfiles/vimrc.bundles

+7
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,12 @@
22
" GitHub-defined NeoBundles {
33
NeoBundle 'flazz/vim-colorschemes'
44
NeoBundle 'sheerun/vim-polyglot'
5+
NeoBundle 'airblade/vim-gitgutter'
6+
NeoBundle 'tpope/vim-surround'
7+
NeoBundle 'mattn/emmet-vim'
8+
NeoBundle 'lambdatoast/elm.vim'
9+
NeoBundle 'neovimhaskell/haskell-vim'
10+
NeoBundle 'eagletmt/ghcmod-vim'
11+
NeoBundle 'dag/vim-fish'
512
" }
613
" }

dotfiles/zsh/zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./Presets/dotfiles/zsh
1+
/Users/dastbe/Presets/dotfiles/zsh

dotfiles/zshrc

+17-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ alias t='tail -f'
4040
# Better grep
4141
alias grep='grep --color'
4242

43+
# Force vi to alias the most specific vim on path
44+
alias vi=vim
45+
4346
# For faster cd navigation
4447
alias -g ..='../'
4548
alias -g ...='../../'
@@ -50,9 +53,21 @@ alias -g .....='../../../../'
5053
alias cpv="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --"
5154

5255
# Syntax Highlighting
53-
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
56+
if [ -e /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]
57+
then
58+
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
59+
fi
60+
61+
if [ -e /usr/local/share/zsh/site-functions/_aws ]
62+
then
63+
source /usr/local/share/zsh/site-functions/_aws
64+
fi
5465

5566
# Set up Homebrew path
5667
export PATH="/usr/local/bin:$PATH"
5768

58-
function gi() { curl http://www.gitignore.io/api/$@ ;}
69+
# Set up rbenv path
70+
if command -v rbenv > /dev/null
71+
then
72+
export PATH="/Users/dastbe/.rbenv/shims:$PATH"
73+
fi

0 commit comments

Comments
 (0)