tmux and nvim clipboard passthrough, opencode system theme in tmux
This commit is contained in:
+5
-4
@@ -1,6 +1,5 @@
|
||||
# set-option -g default-command "exec /usr/local/bin/bash --login"
|
||||
set-option -g status-style bg=default
|
||||
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
|
||||
|
||||
# Enable mouse
|
||||
set -g mouse on
|
||||
@@ -35,11 +34,12 @@ set -s escape-time 0
|
||||
|
||||
# True color support
|
||||
set -g default-terminal "tmux-256color"
|
||||
set-option -ga terminal-overrides ",*256col*:Tc"
|
||||
set -as terminal-features ',*:RGB,usstyle,osc7,clipboard'
|
||||
|
||||
# Allow OSC 11 background queries to pass through
|
||||
set -g allow-passthrough on
|
||||
set -ga terminal-features "*:osc7,RGB,usstyle,RGB"
|
||||
set -g set-clipboard on
|
||||
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl
|
||||
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # truecolor underline
|
||||
|
||||
@@ -51,7 +51,8 @@ set -g pane-active-border-style "fg=blue"
|
||||
|
||||
setw -g mode-keys vi
|
||||
bind -T copy-mode-vi 'v' send -X begin-selection
|
||||
bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy"
|
||||
bind -T copy-mode-vi Enter send -X copy-selection-and-cancel
|
||||
bind -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
||||
|
||||
# set -g status-right "#(date +'%I:%M %p')"
|
||||
# set -g status-right "#(date +'%A, %B %d, %Y')"
|
||||
@@ -64,7 +65,7 @@ bind o \
|
||||
set status off
|
||||
|
||||
# Reserve C-Space O for leaving OFF mode.
|
||||
unbind -T off O
|
||||
unbind -q -T off O
|
||||
bind -T off C-Space switch-client -T off-prefix
|
||||
|
||||
bind -T off-prefix O \
|
||||
|
||||
Reference in New Issue
Block a user