diff --git a/Brewfile b/Brewfile index 8a79f39..73691cc 100644 --- a/Brewfile +++ b/Brewfile @@ -15,6 +15,7 @@ tap "homebrew/core" tap "homebrew/services" tap "jakehilborn/jakehilborn" tap "jondot/tap" +tap "joshmedeski/sesh" tap "koekeishiya/formulae" tap "micnncim/tap" tap "ms-jpq/sad" @@ -496,6 +497,8 @@ brew "fsouza/prettierd/prettierd" brew "jakehilborn/jakehilborn/displayplacer" # The scalable code generator that saves you time. brew "jondot/tap/hygen" +# Smart terminal session manager +brew "joshmedeski/sesh/sesh" # Simple hotkey-daemon for macOS. brew "koekeishiya/formulae/skhd" # A tiling window manager for macOS based on binary space partitioning. diff --git a/tmux/tmux.conf b/tmux/tmux.conf index cbc77f1..d1eb682 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -125,6 +125,17 @@ bind P run "tmux paste-buffer" set -g @thumbs-command 'echo -n {} | pbcopy' +bind-key "T" run-shell "sesh connect $( + sesh list -tz | fzf-tmux -p 55%,60% \ + --no-sort --border-label ' sesh ' --prompt '⚡ ' \ + --header ' ^a all ^t tmux ^x zoxide ^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-x:change-prompt(📁 )+reload(sesh list -z)' \ + --bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' +)" + # ========= Plugins ========= # prefix + I to install, prefix + U to update @@ -145,7 +156,7 @@ set -g @plugin 'carlocab/tmux-nvr' set -g @plugin 'jbnicolai/tmux-fpp' # f set -g @plugin 'nhdaly/tmux-scroll-copy-mode' set -g @plugin 'wfxr/tmux-fzf-url' # u -set -g @plugin 'joshmedeski/t-smart-tmux-session-manager' +# set -g @plugin 'joshmedeski/t-smart-tmux-session-manager' set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'joshmedeski/tmux-nerd-font-window-name' set -g @plugin 'fcsonline/tmux-thumbs'