Fix tmux copying, remove old plugins, cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
set-option -g default-shell /bin/zsh
|
set-option -g default-shell /bin/zsh
|
||||||
bind -Tcopy-mode-vi y send -X copy-pipe "pbcopy" \; display-message "copied to system clipboard"
|
#bind -Tcopy-mode-vi y send -X copy-pipe "pbcopy" \; display-message "copied to system clipboard"
|
||||||
bind C-p run "tmux set-buffer \"$pbpaste\"; tmux paste-buffer"
|
#bind C-p run "tmux set-buffer \"$pbpaste\"; tmux paste-buffer"
|
||||||
bind C-y run "tmux save-buffer - | pbcopy"
|
#bind C-y run "tmux save-buffer - | pbcopy"
|
||||||
|
|||||||
@@ -39,9 +39,10 @@ set -g mouse on
|
|||||||
|
|
||||||
# Vi copypaste mode
|
# Vi copypaste mode
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
|
set -g @yank_action 'copy-pipe'
|
||||||
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
|
#bind-key -Tcopy-mode-vi 'v' send -X begin-selection
|
||||||
bind -Tcopy-mode-vi y send -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c" \; display-message "copied to system clipboard"
|
#bind-key -Tcopy-mode-vi 'y' send -X copy-selection
|
||||||
|
#bind -Tcopy-mode-vi y send -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c" \; display-message "copied to system clipboard"
|
||||||
|
|
||||||
# Smart pane switching with awareness of vim splits
|
# Smart pane switching with awareness of vim splits
|
||||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||||
@@ -55,9 +56,9 @@ bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
|||||||
bind-key C-x send-keys C-x
|
bind-key C-x send-keys C-x
|
||||||
bind-key C-o send-keys C-o
|
bind-key C-o send-keys C-o
|
||||||
|
|
||||||
# Copying
|
# Copying - Most of this is done in tmux-yank!
|
||||||
# move x clipboard into tmux paste buffer
|
# move x clipboard into tmux paste buffer
|
||||||
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
|
#bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
|
||||||
# move tmux copy buffer into x clipboard
|
# move tmux copy buffer into x clipboard
|
||||||
set-option -s set-clipboard on
|
set-option -s set-clipboard on
|
||||||
|
|
||||||
@@ -65,6 +66,8 @@ if '[ `uname` == Darwin ]' \
|
|||||||
'source-file ~/.tmux/.mac_config'
|
'source-file ~/.tmux/.mac_config'
|
||||||
source-file ~/.tmux/.tmux_config_powerline
|
source-file ~/.tmux/.tmux_config_powerline
|
||||||
|
|
||||||
|
set-option -g set-titles on
|
||||||
|
|
||||||
|
|
||||||
# Escape timeout for nvim
|
# Escape timeout for nvim
|
||||||
set -sg escape-time 10
|
set -sg escape-time 10
|
||||||
@@ -73,7 +76,7 @@ set -sg escape-time 10
|
|||||||
# List of plugins
|
# List of plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
#set -g @plugin 'tmux-plugins/tmux-sensible'
|
#set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sidebar'
|
#set -g @plugin 'tmux-plugins/tmux-sidebar'
|
||||||
set -g @plugin 'tmux-plugins/tmux-open'
|
set -g @plugin 'tmux-plugins/tmux-open'
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
set -g @plugin 'jimeh/tmux-themepack'
|
set -g @plugin 'jimeh/tmux-themepack'
|
||||||
@@ -85,4 +88,4 @@ set -g @themepack 'powerline/double/blue'
|
|||||||
# set -g @plugin 'git@bitbucket.com/user/plugin'
|
# set -g @plugin 'git@bitbucket.com/user/plugin'
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run '~/.tmux/plugins/tpm/tpm' # >> /tmp/tpm_out 2>&1 >> /tmp/tpm_out'
|
run '~/.tmux/plugins/tpm/tpm || true' # 2>&1 >> /tmp/tpm_out'
|
||||||
|
|||||||
Submodule tmux/plugins/tpm updated: 26d9ace1b4...b699a7e01c
@@ -1 +0,0 @@
|
|||||||
/Users/fabian/Masterarbeit/thesis 40
|
|
||||||
Reference in New Issue
Block a user