This commit is contained in:
Hadi
2024-10-03 10:18:49 +02:00
parent fe657984fe
commit 7047ffe785
4 changed files with 28 additions and 1 deletions

View File

@@ -13,6 +13,22 @@
bind-key k select-pane -U
bind-key l select-pane -R
set -gq allow-passthrough on
bind-key -n C-Tab select-window -n
bind-key -n C-S-Tab previous-window
bind-key "t" run-shell "sesh connect \"$(
sesh list -t | fzf-tmux -p 65%,70% \
--no-sort --ansi --border-label ' sesh ' --prompt ' ' \
--header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
--bind 'tab:down,btab:up' \
--bind 'ctrl-a:change-prompt( )+reload(sesh list)' \
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t)' \
--bind 'ctrl-g:change-prompt( )+reload(sesh list -c)' \
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z)' \
--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)'
)\""
'';
plugins = with pkgs; [

View File

@@ -1,6 +1,6 @@
{ pkgs, lib, config, ... }: {
home.packages = with pkgs; [ bat ripgrep tldr ];
home.packages = with pkgs; [ bat ripgrep tldr sesh ];
home.sessionPath = [ "$HOME/go/bin" ];