Last active
August 29, 2015 14:17
-
-
Save boovius/80bbe5ce3dc3101e93a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This 'fixes' running xcodebuild in tmux and requires | |
| # `brew install reattach-to-user-namespace` | |
| # https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard | |
| set-option -g default-command "reattach-to-user-namespace -l bash" | |
| # action key | |
| unbind C-b | |
| set -g prefix C-Space | |
| bind Space send-prefix | |
| # copy mode stuff | |
| # <C-Space><Space> enters copy mode | |
| bind Space copy-mode | |
| bind C-Space copy-mode | |
| # y to copy to system clipboard in copy mode - brew install reattach-to-user-namespace | |
| bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
| # vi keys | |
| set-window-option -g mode-keys vi | |
| # Use base index of 1 for panes | |
| set-window-option -g pane-base-index 1 | |
| # status bar | |
| set -g status-bg white | |
| set -g status-fg black | |
| set -g status-right '%m/%d %I:%M %p' | |
| setw -g window-status-current-fg blue | |
| # key bindings | |
| bind c new-window -c "#{pane_current_path}" | |
| bind % split-window -h -c "#{pane_current_path}" | |
| bind V split-window -h -p 66 -c "#{pane_current_path}" | |
| bind v split-window -h -p 20 -c "#{pane_current_path}" | |
| bind H split-window -v -p 25 -c "#{pane_current_path}" | |
| bind h split-window -v -p 50 -c "#{pane_current_path}" | |
| # this works as a command, but not here. | |
| #bind " split-window -c "#{pane_current_path}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment