Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ajust tmux key bindings

  • Loading branch information...
commit 47dcd5aebea1b1127a966a13755a4461fae0df24 1 parent 391ffb3
@nouh authored
Showing with 12 additions and 3 deletions.
  1. +12 −3 tmux.conf
View
15 tmux.conf
@@ -35,7 +35,7 @@ set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
#### pane border
-set-option -g pane-border-fg black #base02
+set-option -g pane-border-fg brightblue #base02
set-option -g pane-active-border-fg brightgreen #base01
#### message text
@@ -59,9 +59,18 @@ set -g status-right '#[fg=green,bg=black,bright]#(tmux-mem-cpu-load 1) #[fg=red,
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# paste clipboard into tmux buffer
# bind v run-shell "reattach-to-user-namespace -l zsh -c 'tmux set-buffer \\"$(pbpaste)\\"; tmux paste-buffer'"
-# put tmux buffer into x clipboard
+# put tmux buffer into clipboard
# bind y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'"
+#Copy tmux paste buffer to CLIPBOARD
+bind C-c run "tmux show-buffer | xsel -i -b"
+#Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
+bind C-v run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer"
+#Copy tmux paste buffer to CLIPBOARD
+#bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
+##Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
+#bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
+
#### easily toggle synchronization (mnemonic: e is for echo)
#### sends input to all panes in a given window.
@@ -70,8 +79,8 @@ bind E setw synchronize-panes off
#### copy mode mappings
unbind [
-bind y copy-mode
unbind p
+bind y copy-mode
bind p paste-buffer
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection

0 comments on commit 47dcd5a

Please sign in to comment.
Something went wrong with that request. Please try again.