Use prefix+a with fzf to fast switch between sessions
This commit is contained in:
parent
1808f28807
commit
8a0e164f73
@ -1,9 +0,0 @@
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBwUTFyVUg4VmFtbEVnNXkw
|
||||
eHVJczNDdHViaDlyc0owZi9QNmNBS3U0YkY0ClNEd1hmWnBPQ3pTRnZpaWFCdEQ4
|
||||
SUZncEpMdkpnRWVjUy9FbFdLZkJ6Wk0KLS0tIENsNkFlalBWNnYxcVF4VnNTbkd1
|
||||
VWV4ZHNIWUpiek56bFdaK2R2TzkwSXcK1+UZP1EGZsQM1OiEbmRRb/6X1RjQiAdK
|
||||
ZA4dN4s84E0zJYDeIDU7U6AVi+GM8yeNvMDcEavkHtYgFGiFrZ2WspAaBlCm8RXw
|
||||
u9SAaxRwfD1pqRnZVPxxlP6JUmdV3BfzM5L2ifAauXczXKjXWbVWU/7zXGDChKvz
|
||||
jFySos+dEcLX7opddonoJxe3S/TtYuKk18gQuVx/YF9t
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
9
dot_config/git/config.d/encrypted_work.config.age
Normal file
9
dot_config/git/config.d/encrypted_work.config.age
Normal file
@ -0,0 +1,9 @@
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBneVFnSzZOK2JCcFh1djFO
|
||||
eit4VXdZZVZFaXQ1S2d5TTJOK3N2U0J6UmlJCkZ5RXZDOHpaUzdZOUpWUWlBK3pJ
|
||||
Y3I1aThmT1lJN25lZ0FMbU1mTDNlVmsKLS0tIHNOeHlDQVZnalFCOGRoaXgyd1Bt
|
||||
Y2ovVVFONHRxalJFUlpjYWx5Q0dJSFUKl4EUSvr6t7Jzwx0t78rU0cXgzJbiBG+n
|
||||
+2RPqf0Ow/9pjFJWJWAtxxMr/5uK56GQsm/tGjOdhXlf+1Q/aiffOOj+6jq/U9vd
|
||||
yZfvC0Z67NwpZW+pMyAT/HyifZUWk4F/pT9IOaTE3QouPpSixFz3ad2B3VGPqilB
|
||||
Do7jGpwzyXE5AwGMcIEFe1wFjACKW2Q0xj/gh17RLK8q
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
@ -1,12 +0,0 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=bash: */ -}}
|
||||
#{{- if and (lookPath "tmux") (eq .chezmoi.os "darwin") -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$(uname -s)" == "Darwin" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
tmux set default-terminal "tmux-256color"
|
||||
tmux set terminal-overrides ",xterm-256color:Tc"
|
||||
#{{- end }}
|
||||
@ -40,7 +40,8 @@ set-option -g default-shell "#{{ lookPath "nu" | replace .chezmoi.homeDir "$HOME
|
||||
# Colors
|
||||
################################################################################
|
||||
#{{ if eq .chezmoi.os "darwin" -}}
|
||||
run $XDG_CONFIG_HOME/tmux/plugins/macos-color-workaround
|
||||
set default-terminal "tmux-256color"
|
||||
set terminal-overrides ",xterm-256color:Tc"
|
||||
#{{ end }}
|
||||
set -g status-fg white
|
||||
set -g status-bg black
|
||||
@ -55,14 +56,19 @@ unbind [
|
||||
bind Escape copy-mode
|
||||
unbind p
|
||||
bind p paste-buffer
|
||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||||
bind-key -T copy-mode-vi 'q' send -X rectangle-toggle
|
||||
bind -T copy-mode-vi 'v' send -X begin-selection
|
||||
bind -T copy-mode-vi 'y' send -X copy-selection
|
||||
bind -T copy-mode-vi 'q' send -X rectangle-toggle
|
||||
|
||||
# Make switch session shortcut repeatable
|
||||
bind -r ( switch-client -p
|
||||
bind -r ) switch-client -n
|
||||
|
||||
#{{- if lookPath "fzf" -}}
|
||||
unbind f
|
||||
bind f display-popup -E "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"
|
||||
#{{ end }}
|
||||
|
||||
# Reload config with prefix r
|
||||
bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Reloaded"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user