mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
Adds snippets to nvim
This commit is contained in:
@@ -3,12 +3,8 @@
|
||||
session=${1}
|
||||
|
||||
if [ -z "$session" ]; then
|
||||
session=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick a session...")
|
||||
tmux switch-client -t "$session" || tmux attach -t "$session"
|
||||
choice=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick a session...")
|
||||
tmux switch-client -t "$choice" || tmux attach -t "$choice"
|
||||
else
|
||||
if [ ! -z "$(tmux list-sessions -F \#S | grep $session)" ]; then
|
||||
tmux switch-client -t "$session" || tmux attach -t "$session"
|
||||
else
|
||||
echo "No session found for: $session"
|
||||
fi
|
||||
tmux switch-client -t "$session" || tmux attach -t "$session"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user