add changes from work workstation
This commit is contained in:
@@ -25,7 +25,14 @@ bind '"' split-window -v -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
|
||||
### set-environment -g PATH "$HOMEBREW_PREFIX/bin:$PATH"
|
||||
bind o popup -E -E -d "#{pane_current_path}" -w 66% -h 66%
|
||||
bind o run-shell '\
|
||||
SID="scratch-#{window_id}"; \
|
||||
if ! tmux has-session -t "$SID" 2>/dev/null; then \
|
||||
tmux new-session -d -s "$SID" -c "#{pane_current_path}"; \
|
||||
fi; \
|
||||
tmux popup -d "#{pane_current_path}" -w 66% -h 66% -E "tmux attach-session -t \"$SID\""'
|
||||
|
||||
# set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
|
||||
|
||||
bind-key -n C-S-Down next-window
|
||||
bind-key -n C-S-Up previous-window
|
||||
@@ -34,7 +41,7 @@ bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
|
||||
|
||||
setw -g mode-keys vi
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection
|
||||
|
||||
set -g set-clipboard on
|
||||
set -g focus-events on
|
||||
@@ -51,7 +58,12 @@ set-option -g allow-rename off
|
||||
set-option -sa terminal-features ',alacritty:RGB'
|
||||
set-option -ga terminal-features ",alacritty:usstyle"
|
||||
set-option -ga terminal-overrides ',alacritty:Tc'
|
||||
set -g default-terminal "alacritty"
|
||||
|
||||
if-shell 'infocmp tmux-256color >/dev/null 2>&1' {
|
||||
set -g default-terminal "tmux-256color"
|
||||
} {
|
||||
set -g default-terminal "tmux"
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
@@ -107,17 +119,6 @@ set-option -g @ssh-split-r-key "R"
|
||||
|
||||
set -g @plugin 'Morantron/tmux-fingers'
|
||||
|
||||
# Platform-specific settings
|
||||
if-shell "uname | grep -q Darwin" {
|
||||
# macOS specific settings
|
||||
set -g @continuum-boot-options 'alacritty,fullscreen'
|
||||
# Don't use -l (login shell): avoids slow .zprofile on every new window; env is set in .zshenv
|
||||
set -g default-command "reattach-to-user-namespace $SHELL"
|
||||
} {
|
||||
# Linux specific settings
|
||||
set -g @continuum-boot-options 'alacritty,fullscreen'
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
### Nvim-tmux-navigation setup ###
|
||||
|
||||
Reference in New Issue
Block a user