|
|
|
@ -7,23 +7,27 @@
|
|
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run-shell "powerline-daemon -q"
|
|
|
|
|
|
|
|
|
|
#default to bash
|
|
|
|
|
set -g default-command "/bin/bash"
|
|
|
|
|
set -g default-shell "/bin/bash"
|
|
|
|
|
|
|
|
|
|
# enable pbcopy and pbpaste support with reattach-to-user-namespace
|
|
|
|
|
set-option -g default-command "reattach-to-user-namespace -l bash --login"
|
|
|
|
|
set-option -g default-command "reattach-to-user-namespace -l bash --login"
|
|
|
|
|
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
|
|
|
|
|
bind C-v run "tmux set-buffer \"$(reattach-to-user-namespace pbpaste)\"; tmux paste-buffer"
|
|
|
|
|
|
|
|
|
|
set -g default-terminal screen-256color
|
|
|
|
|
#run-shell "powerline-daemon -q"
|
|
|
|
|
#source ~/Tools/modules/powerline/powerline/bindings/tmux/powerline.conf
|
|
|
|
|
|
|
|
|
|
set -g default-terminal "screen-256color"
|
|
|
|
|
|
|
|
|
|
# set esc-wait off, so vim works
|
|
|
|
|
set-option -sg escape-time 0
|
|
|
|
|
|
|
|
|
|
#set prefix to ctrl-a
|
|
|
|
|
unbind-key C-a
|
|
|
|
|
unbind-key C-b
|
|
|
|
|
set-option -g prefix C-a
|
|
|
|
|
bind-key C-a send-prefix
|
|
|
|
|
|
|
|
|
@ -35,13 +39,19 @@ set-option -g set-titles-string ' #I-#W '
|
|
|
|
|
set-option -g repeat-time 500
|
|
|
|
|
set-option -g visual-bell on
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#status bar
|
|
|
|
|
set-option -g status-utf8 on
|
|
|
|
|
set-option -g status-keys vi
|
|
|
|
|
set-option -g status-interval 5
|
|
|
|
|
set-option -g status-interval 1
|
|
|
|
|
set-option -g status-justify left
|
|
|
|
|
set-option -g status-left ' #h | Adam Veldhousen'
|
|
|
|
|
set-option -g status-right 'tmux is rad | %d-%m-%Y %H:%M:%ss #[default]'
|
|
|
|
|
|
|
|
|
|
set-option -g status-left-length 65
|
|
|
|
|
#set-option -g status-left-bg blue
|
|
|
|
|
set-option -g status-left ' #h | Adam Veldhousen '
|
|
|
|
|
|
|
|
|
|
#set-option -g status-right-bg green
|
|
|
|
|
set-option -g status-right ' tmux is rad | bat: #(~/utilities/battery) | %A %B %d, %Y %Ts '
|
|
|
|
|
|
|
|
|
|
# copy mode
|
|
|
|
|
set-option buffer-limit 10
|
|
|
|
@ -52,6 +62,12 @@ set-window-option -g clock-mode-style 24
|
|
|
|
|
set-window-option -g monitor-activity on
|
|
|
|
|
set-window-option -g automatic-rename on
|
|
|
|
|
set-window-option -g mode-mouse on
|
|
|
|
|
set-window-option -g mode-keys vi
|
|
|
|
|
|
|
|
|
|
#pane options
|
|
|
|
|
set -g mouse-resize-pane on
|
|
|
|
|
set -g mouse-select-pane on
|
|
|
|
|
set -g pane-active-border-fg green
|
|
|
|
|
|
|
|
|
|
# Window nav
|
|
|
|
|
unbind-key 1 ; bind-key 1 select-window -t 1
|
|
|
|
@ -95,19 +111,15 @@ unbind-key q ; bind-key q list-keys
|
|
|
|
|
unbind-key M-q ; bind-key M-q list-keys
|
|
|
|
|
|
|
|
|
|
# vim behavior
|
|
|
|
|
setw -g mode-keys vi
|
|
|
|
|
|
|
|
|
|
unbind [ ; bind Escape copy-mode
|
|
|
|
|
unbind p ; bind p paste-buffer
|
|
|
|
|
bind -t vi-copy 'v' begin-selection
|
|
|
|
|
bind -t vi-copy 'y' copy-selection
|
|
|
|
|
|
|
|
|
|
#vim airline integration
|
|
|
|
|
#source ~/Tools/vim/.vimrc
|
|
|
|
|
|
|
|
|
|
#unbind-key ^A-c ; bind-key -n ^A-c copy-mode
|
|
|
|
|
#unbind-key ^A-NPage ; bind-key -n ^A-NPage copy-mode
|
|
|
|
|
#unbind-key ^A-PPage ; bind-key -n ^A-PPage copy-mode
|
|
|
|
|
#unbind-key ^A-i ; bind-key -n ^A-i paste-buffer
|
|
|
|
|
#unbind-key ^A-P ; bind-key -n ^A-P paste-buffer
|
|
|
|
|
|
|
|
|
|
source ~/Tools/modules/powerline/powerline/bindings/tmux/powerline.conf
|
|
|
|
|