mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
fixed current session script
This commit is contained in:
@@ -3,11 +3,9 @@ set -e
|
|||||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||||
|
|
||||||
if [ -n "$TMUX" ]; then
|
if [ -n "$TMUX" ]; then
|
||||||
for item in $(tmux list-sessions -F "#{?session_attached,1,0}:#S"); do
|
for item in $(tmux list-pane -F "#{session_name}");do
|
||||||
if [[ "$item" == "1:"* ]]; then
|
echo $item
|
||||||
echo ${item/1:/}
|
exit 0
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user