1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-17 19:40:02 +02:00
dotfiles/scripts/tmuxs/list-sessions.sh

11 lines
210 B
Bash
Executable file

#!/bin/bash
OPTS="list-sessions -F #{session_name}"
## If we are inside tmux already, don't list active sessions
if [[ ! -z $TMUX ]]; then
OPTS="${OPTS} -f #{==:#{session_attached},0}"
fi
tmux ${OPTS}