about summary refs log tree commit diff
path: root/configs/shared/tmux/.tmux.conf
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-18T14·14+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-18T14·14+0000
commitf7b3e0a7a92903307ef1f4c66992721be6e01e08 (patch)
tree11f1959ee6dc34d2f8b20e6425cbb85700b55c63 /configs/shared/tmux/.tmux.conf
parentbf33edaa6efbf3572d9335bb07b530af249de0d2 (diff)
Drop OSX support; support desktop, laptop, cloudtop
Dropping support for OSX. Moving forward these dotfiles will depend on Linux
systems. Furthermore, since I'm support a ~/bin, the machines that consume these
dotfiles depend on i386 architectures. Linux and i386 are two dependencies that
I'm okay with since the leverage this assumption provides, makes their existence
tolerable.

There is some Google leakage herein, which includes aliases, functions, and
mentions of cloudtop. For now, this is okay. I may break the Google specific
code into its own repository, but for now, this is less maintenance.

This also introduces a ~/.profile instead of erroneously defining environment
variables in my zshrc file, which was unadvised.

This is a large commit and also introduces new aliases, variables, functions
that I accumulated over the past week or so while migrating away from OSX and
onto my new setup. Hopefully in the future I'll be more precise with my commits.
Diffstat (limited to 'configs/shared/tmux/.tmux.conf')
-rw-r--r--configs/shared/tmux/.tmux.conf21
1 files changed, 5 insertions, 16 deletions
diff --git a/configs/shared/tmux/.tmux.conf b/configs/shared/tmux/.tmux.conf
index f2eff9bc7cf4..9c2124885c02 100644
--- a/configs/shared/tmux/.tmux.conf
+++ b/configs/shared/tmux/.tmux.conf
@@ -18,7 +18,6 @@ set -g @copycat_next 'p'
 set -g @copycat_prev 'n'
 set -g @plugin 'arcticicestudio/nord-tmux'
 
-# set -g @plugin 'tmux-plugins/tmux-yank'
 
 ################################################################################
 # Context Helpers
@@ -39,8 +38,8 @@ is_vim_or_emacs="ps -o state= -o comm= -t '#{pane_tty}' \
 
 # change tmux leader
 unbind C-b
-set -g prefix C-q
-bind C-q send-prefix
+set -g prefix C-y
+bind C-y send-prefix
 
 
 ################################################################################
@@ -48,17 +47,14 @@ bind C-q send-prefix
 ################################################################################
 
 # COLORS!
-set -g default-terminal "screen-256color"
-set-option -sa terminal-overrides ",xterm*:Tc"
+set -g default-terminal "tmux"
+set-option -sa terminal-overrides ",*256col*:Tc"
 
 
 ################################################################################
 # Copy Paste
 ################################################################################
 
-# Copy-paste integration
-set-option -g default-command "reattach-to-user-namespace -l zsh"
-
 # copy text like it's Vim
 bind -n Escape if-shell "${is_vim_or_emacs}" "send-keys Escape" copy-mode
 
@@ -67,17 +63,10 @@ setw -g mode-keys vi
 
 # Setup 'v' to begin selection as in Vim
 bind -Tcopy-mode-vi v send -X begin-selection
-bind -Tcopy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
+bind -Tcopy-mode-vi y send -X copy-pipe-and-cancel "xclip -selection clipboard -i"
 bind -Tcopy-mode-vi Escape send -X cancel
 bind -Tcopy-mode-vi V send -X rectangle-toggle
 
-# Update default binding of `Enter` to also use copy-pipe
-unbind -Tcopy-mode Enter
-bind -Tcopy-mode Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
-
-# Bind ']' to use pbpaste
-bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
-
 
 ################################################################################
 # Windows