Skip to content

Commit 71209b5

Browse files
authored
Merge branch 'square:master' into master
2 parents d27b095 + 47a13e8 commit 71209b5

File tree

4 files changed

+27
-26
lines changed

4 files changed

+27
-26
lines changed

Rakefile

+2-12
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ def install_github_bundle(user, package)
3232
end
3333

3434
def brew_cask_install(package, *options)
35-
output = `brew cask info #{package}`
35+
output = `brew info --cask #{package}`
3636
return unless output.include?('Not installed')
3737

38-
sh "brew cask install --binarydir=#{`brew --prefix`.chomp}/bin #{package} #{options.join ' '}"
38+
sh "brew install --cask #{package} #{options.join ' '}"
3939
end
4040

4141
def step(description)
@@ -127,15 +127,6 @@ namespace :install do
127127
end
128128
end
129129

130-
desc 'Install Homebrew Cask'
131-
task :brew_cask do
132-
step 'Homebrew Cask'
133-
system('brew untap phinze/cask') if system('brew tap | grep phinze/cask > /dev/null')
134-
unless system('brew tap | grep caskroom/cask > /dev/null') || system('brew tap caskroom/cask')
135-
abort "Failed to tap caskroom/cask in Homebrew."
136-
end
137-
end
138-
139130
desc 'Install The Silver Searcher'
140131
task :the_silver_searcher do
141132
step 'the_silver_searcher'
@@ -229,7 +220,6 @@ LINKED_FILES = filemap(
229220
desc 'Install these config files.'
230221
task :install do
231222
Rake::Task['install:brew'].invoke
232-
Rake::Task['install:brew_cask'].invoke
233223
Rake::Task['install:the_silver_searcher'].invoke
234224
Rake::Task['install:iterm'].invoke
235225
Rake::Task['install:ctags'].invoke

tmux.conf

+22-13
Original file line numberDiff line numberDiff line change
@@ -55,32 +55,41 @@ bind-key T previous-window
5555
bind-key [ copy-mode
5656
bind-key ] paste-buffer
5757

58-
# Setup 'v' to begin selection as in Vim
59-
bind-key -t vi-copy v begin-selection
60-
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
58+
run-shell "tmux setenv -g TMUX_VERSION $(tmux -V | cut -c 6-)"
6159

60+
# Setup 'v' to begin selection as in Vim
6261
# Update default binding of `Enter` to also use copy-pipe
63-
unbind -t vi-copy Enter
64-
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
62+
#
63+
# New keybindings for vi-mode when version >= 2.4
64+
# https://github.com/tmux/tmux/issues/754
65+
if-shell -b '[ "$(echo "$TMUX_VERSION >= 2.4" | bc)" = 1 ]' \
66+
'bind-key -T copy-mode-vi v send-keys -X begin-selection ; \
67+
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" ; \
68+
unbind -T copy-mode-vi Enter ; \
69+
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"; ' \
70+
'bind-key -t vi-copy v begin-selection ; \
71+
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" ; \
72+
unbind -t vi-copy Enter ; \
73+
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"; '
6574

6675
set-window-option -g display-panes-time 1500
6776

6877
# Status Bar
6978
set-option -g status-interval 1
7079
set-option -g status-left ''
7180
set-option -g status-right '%l:%M%p'
72-
set-window-option -g window-status-current-fg magenta
73-
set-option -g status-fg default
81+
set-window-option -g window-status-current-style fg=magenta
82+
set-option -g status-style fg=default
7483

7584
# Status Bar solarized-dark (default)
76-
set-option -g status-bg black
77-
set-option -g pane-active-border-fg black
78-
set-option -g pane-border-fg black
85+
set-option -g status-style bg=black
86+
set-option -g pane-active-border-style fg=black
87+
set-option -g pane-border-style fg=black
7988

8089
# Status Bar solarized-light
81-
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g status-bg white"
82-
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g pane-active-border-fg white"
83-
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g pane-border-fg white"
90+
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g status-style bg=white"
91+
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g pane-active-border-style fg=white"
92+
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g pane-border-style fg=white"
8493

8594
# Set window notifications
8695
setw -g monitor-activity on

vimrc

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ let g:ctrlp_match_window = 'order:ttb,max:20'
7979
let g:NERDSpaceDelims=1
8080
let g:gitgutter_enabled = 0
8181

82+
" use the new SnipMate parser
83+
let g:snipMate = { 'snippet_version' : 1 }
84+
8285
" Use The Silver Searcher https://github.com/ggreer/the_silver_searcher
8386
if executable('ag')
8487
" Use Ag over Grep

vimrc.bundles

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Plugin 'tpope/vim-repeat'
3636
Plugin 'tpope/vim-surround'
3737
Plugin 'tpope/vim-unimpaired'
3838
Plugin 'tpope/vim-vividchalk'
39-
Plugin 'eventualbuddha/vim-protobuf'
4039
Plugin 'vim-ruby/vim-ruby'
4140
Plugin 'vim-scripts/Align'
4241
Plugin 'vim-scripts/greplace.vim'

0 commit comments

Comments
 (0)