Update tmux session management
This commit is contained in:
parent
ac3884e493
commit
f98b2c56b0
1 changed files with 12 additions and 10 deletions
|
|
@ -1,14 +1,16 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
sesh connect "$(
|
sesh connect "$(
|
||||||
sesh list | fzf-tmux -p 55%,60% \
|
sesh list --hide-attached --icons |
|
||||||
--no-sort --border-label ' sesh ' --prompt '⚡ ' \
|
rg --invert-match '(scratch)' | # exclude this entries, use regex: /(name1|name2)/
|
||||||
--header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
|
fzf-tmux -p 55%,60% \
|
||||||
--bind 'tab:down,btab:up' \
|
--no-sort --border-label ' sesh ' --prompt '⚡ ' \
|
||||||
--bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list)' \
|
--header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
|
||||||
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t)' \
|
--bind 'tab:down,btab:up' \
|
||||||
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c)' \
|
--bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list --hide-attached --icons)' \
|
||||||
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z)' \
|
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --hide-attached --icons)' \
|
||||||
--bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
|
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --hide-attached --icons)' \
|
||||||
--bind 'ctrl-d:execute(tmux kill-session -t {})+change-prompt(⚡ )+reload(sesh list)'
|
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --hide-attached --icons)' \
|
||||||
|
--bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
|
||||||
|
--bind 'ctrl-d:execute(tmux kill-session -t {})+change-prompt(⚡ )+reload(sesh list --hide-attached --icons)'
|
||||||
)"
|
)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue