mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-28 07:58:39 +00:00
chore(tmux): switch to gum based sesh filter
This commit is contained in:
18
config/tmux/sesh-gum.sh
Executable file
18
config/tmux/sesh-gum.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Get session list and pipe it to gum for selection
|
||||
SESH_LIST=$(
|
||||
sesh list -i \
|
||||
| gum filter \
|
||||
--limit 1 \
|
||||
--no-sort \
|
||||
--fuzzy \
|
||||
--placeholder 'Pick a sesh' \
|
||||
--height 50 \
|
||||
--prompt='⚡'
|
||||
)
|
||||
|
||||
# If a session was selected, connect to it
|
||||
if [ "$SESH_LIST" != "" ]; then
|
||||
sesh connect "$SESH_LIST"
|
||||
fi
|
||||
Reference in New Issue
Block a user