Skip to content

Commit

Permalink
Add my semi-annual giant dotfiles commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mileszs committed Apr 30, 2019
1 parent 55154a2 commit 9e198c9
Show file tree
Hide file tree
Showing 68 changed files with 1,548 additions and 468 deletions.
3 changes: 1 addition & 2 deletions gemrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ gem: --no-ri --no-rdoc
:update_sources: true
:backtrace: false
:sources:
- http://rubygems.org
- http://gems.rubyforge.org/
- https://rubygems.org
66 changes: 66 additions & 0 deletions tmux-client-86913.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
1502375316.515584 client started (86913): socket /private/tmp/tmux-501/default, protocol 8
1502375316.515652 on Darwin 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64; libevent 2.0.22-stable (select)
1502375316.515684 socket is /private/tmp/tmux-501/default
1502375316.515700 trying connect
1502375316.515783 add peer 0x7f8e43000000: 6 (0x0)
1502375316.517022 sending message 100 to peer 0x7f8e43000000 (4 bytes)
1502375316.517036 sending message 101 to peer 0x7f8e43000000 (15 bytes)
1502375316.517041 sending message 102 to peer 0x7f8e43000000 (13 bytes)
1502375316.517044 sending message 108 to peer 0x7f8e43000000 (24 bytes)
1502375316.517051 sending message 104 to peer 0x7f8e43000000 (0 bytes)
1502375316.517054 sending message 107 to peer 0x7f8e43000000 (4 bytes)
1502375316.517058 sending message 105 to peer 0x7f8e43000000 (60 bytes)
1502375316.517061 sending message 105 to peer 0x7f8e43000000 (66 bytes)
1502375316.517064 sending message 105 to peer 0x7f8e43000000 (76 bytes)
1502375316.517068 sending message 105 to peer 0x7f8e43000000 (15 bytes)
1502375316.517071 sending message 105 to peer 0x7f8e43000000 (22 bytes)
1502375316.517074 sending message 105 to peer 0x7f8e43000000 (14 bytes)
1502375316.517077 sending message 105 to peer 0x7f8e43000000 (17 bytes)
1502375316.517081 sending message 105 to peer 0x7f8e43000000 (28 bytes)
1502375316.517084 sending message 105 to peer 0x7f8e43000000 (15 bytes)
1502375316.517087 sending message 105 to peer 0x7f8e43000000 (24 bytes)
1502375316.517090 sending message 105 to peer 0x7f8e43000000 (28 bytes)
1502375316.517094 sending message 105 to peer 0x7f8e43000000 (23 bytes)
1502375316.517097 sending message 105 to peer 0x7f8e43000000 (212 bytes)
1502375316.517100 sending message 105 to peer 0x7f8e43000000 (20 bytes)
1502375316.517103 sending message 105 to peer 0x7f8e43000000 (20 bytes)
1502375316.517107 sending message 105 to peer 0x7f8e43000000 (57 bytes)
1502375316.517110 sending message 105 to peer 0x7f8e43000000 (13 bytes)
1502375316.517113 sending message 105 to peer 0x7f8e43000000 (19 bytes)
1502375316.517116 sending message 105 to peer 0x7f8e43000000 (16 bytes)
1502375316.517119 sending message 105 to peer 0x7f8e43000000 (61 bytes)
1502375316.517123 sending message 105 to peer 0x7f8e43000000 (38 bytes)
1502375316.517126 sending message 105 to peer 0x7f8e43000000 (8 bytes)
1502375316.517129 sending message 105 to peer 0x7f8e43000000 (22 bytes)
1502375316.517132 sending message 105 to peer 0x7f8e43000000 (30 bytes)
1502375316.517136 sending message 105 to peer 0x7f8e43000000 (22 bytes)
1502375316.517141 sending message 105 to peer 0x7f8e43000000 (11 bytes)
1502375316.517144 sending message 105 to peer 0x7f8e43000000 (8 bytes)
1502375316.517147 sending message 105 to peer 0x7f8e43000000 (21 bytes)
1502375316.517151 sending message 105 to peer 0x7f8e43000000 (32 bytes)
1502375316.517154 sending message 105 to peer 0x7f8e43000000 (11 bytes)
1502375316.517157 sending message 105 to peer 0x7f8e43000000 (30 bytes)
1502375316.517160 sending message 105 to peer 0x7f8e43000000 (43 bytes)
1502375316.517163 sending message 105 to peer 0x7f8e43000000 (16 bytes)
1502375316.517167 sending message 105 to peer 0x7f8e43000000 (28 bytes)
1502375316.517170 sending message 105 to peer 0x7f8e43000000 (46 bytes)
1502375316.517173 sending message 105 to peer 0x7f8e43000000 (42 bytes)
1502375316.517176 sending message 105 to peer 0x7f8e43000000 (325 bytes)
1502375316.517179 sending message 105 to peer 0x7f8e43000000 (61 bytes)
1502375316.517183 sending message 105 to peer 0x7f8e43000000 (55 bytes)
1502375316.517186 sending message 105 to peer 0x7f8e43000000 (25 bytes)
1502375316.517189 sending message 105 to peer 0x7f8e43000000 (18 bytes)
1502375316.517192 sending message 105 to peer 0x7f8e43000000 (30 bytes)
1502375316.517195 sending message 105 to peer 0x7f8e43000000 (18 bytes)
1502375316.517198 sending message 105 to peer 0x7f8e43000000 (22 bytes)
1502375316.517202 sending message 105 to peer 0x7f8e43000000 (17 bytes)
1502375316.517205 sending message 105 to peer 0x7f8e43000000 (15 bytes)
1502375316.517227 sending message 106 to peer 0x7f8e43000000 (0 bytes)
1502375316.517234 sending message 200 to peer 0x7f8e43000000 (4 bytes)
1502375316.517237 client loop enter
1502375316.525834 peer 0x7f8e43000000 message 207
1502375316.525858 sending message 208 to peer 0x7f8e43000000 (0 bytes)
1502375350.329376 peer 0x7f8e43000000 message 203
1502375350.329396 sending message 205 to peer 0x7f8e43000000 (0 bytes)
1502375350.330025 peer 0x7f8e43000000 message 204
1502375350.330042 client loop exit
39 changes: 21 additions & 18 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
set-option -g prefix C-space

set -g default-terminal "screen-256color"
setw -g mode-mouse on
set -g mouse-select-pane on
setw -g mode-mouse on
set-option -g mouse on
set -g base-index 1
setw -g automatic-rename off

Expand All @@ -29,30 +27,34 @@ set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold

set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀'
set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold] ⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold] '
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
set -g window-status-current-format "#[fg=colour234,bg=colour39] ⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold] "
set -g status-right "#(date)"

# Refresh from the config file
bind r source-file ~/.tmux.conf

# smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"

is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
bind-key -T copy-mode-vi C-h select-pane -L
bind-key -T copy-mode-vi C-j select-pane -D
bind-key -T copy-mode-vi C-k select-pane -U
bind-key -T copy-mode-vi C-l select-pane -R
bind-key -T copy-mode-vi C-\ select-pane -l

# copy and paste
bind [ copy-mode
bind -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
bind -t vi-copy V rectangle-toggle
bind ] paste-buffer
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"

# split more intutively with - (horizontal) and | (vertical)
unbind-key %
Expand All @@ -64,5 +66,6 @@ bind-key - split-window -v
unbind Q
bind-key Q confirm-before kill-session

set -g default-shell $SHELL
# Need copy/paste to work
set-option -g default-command "reattach-to-user-namespace -l zsh"
12 changes: 4 additions & 8 deletions vim/.netrwhist
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =7
let g:netrw_dirhist_1='/Users/mileszs/.gem/ruby/2.2.3/gems'
let g:netrw_dirhist_2='/Users/mileszs/.gem/ruby/2.2.3/gems/factory_girl-4.5.0'
let g:netrw_dirhist_3='/Users/mileszs/.gem/ruby/2.2.3/gems/factory_girl-4.5.0/lib'
let g:netrw_dirhist_4='/Users/mileszs/.gem/ruby/2.2.3/gems/factory_girl-4.5.0/lib/factory_girl'
let g:netrw_dirhist_5='/Users/mileszs/code/springbuk/springbuk/app/assets/stylesheets/application'
let g:netrw_dirhist_6='/Users/mileszs/code/springbuk'
let g:netrw_dirhist_7='/Users/mileszs/code/amedco/amedco-workshop-evaluator/app/assets/javascripts'
let g:netrw_dirhist_cnt =3
let g:netrw_dirhist_1='/Users/mileszs/code/olio/episode360-api/app/services'
let g:netrw_dirhist_2='/Users/mileszs/code/olio/episode360-api/app/services/notify'
let g:netrw_dirhist_3='/Users/mileszs/code/olio/api/.circleci'
1 change: 1 addition & 0 deletions vim/bundle/.vundle/script-names.vim-scripts.org.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions vim/bundle/ctrlp.vim/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#**This project is unmaintained**
**You should use [this fork](https://github.com/ctrlpvim/ctrlp.vim) instead.**

# ctrlp.vim
Full path fuzzy __file__, __buffer__, __mru__, __tag__, __...__ finder for Vim.

Expand Down
1 change: 1 addition & 0 deletions vim/bundle/dart-vim-plugin
Submodule dart-vim-plugin added at 41c48d
2 changes: 1 addition & 1 deletion vim/bundle/dash.vim
Submodule dash.vim updated from 4b01b6 to 25b17d
2 changes: 1 addition & 1 deletion vim/bundle/gist-vim
Submodule gist-vim updated from 6130b8 to f0d635
1 change: 1 addition & 0 deletions vim/bundle/phoenix.vim
Submodule phoenix.vim added at 723be1
2 changes: 2 additions & 0 deletions vim/bundle/quickfixsigns_vim/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ TODO_archived.viki
.last_*
test
test_*
tmp
var
Loading

0 comments on commit 9e198c9

Please sign in to comment.