dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit bfce2a99dd2ee5565f13603412d6a3499ef9bdcd
parent b1125220899e0a147279de0d6b16ca6054f3b9d9
Author: pyratebeard <root@pyratebeard.net>
Date:   Tue, 10 Mar 2020 21:19:43 +0000

tmush alias for remote tmux. toggle tmux prefix keybinding on/off

Diffstat:
Mtmux/.tmux.conf | 13+++++++++++++
Mzsh/.zsh/aliases.zsh | 3+++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf @@ -129,5 +129,18 @@ bind t set status set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-online-status' +# see: toggle on/off all keybindings · Issue #237 · tmux/tmux - https://github.com/tmux/tmux/issues/237 +# Also, change some visual styles when window keys are off +bind-key -T root F12 \ + set-option -g prefix None \;\ + setw -g window-status-current-format "#[bg=colour8,fg=black] #I #[bg=black,fg=colour8] #W " \;\ + refresh-client -S \;\ + +bind-key -T root F11 \ + set-option -g prefix ` \;\ + bind ` send-prefix \;\ + setw -g window-status-current-format "#[bg=yellow,fg=black] #I #[bg=black,fg=yellow] #W " \;\ + refresh-client -S + # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm' diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh @@ -69,3 +69,6 @@ l() { md() { pandoc -s -f markdown -t man "$*" | man -l - } +tmush() { + ssh -t "$@" 'tmux attach || tmux new' +}