mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Make better use of conditional operators and quote vars properly
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
if [ ! -z $TMUX ]; then
|
||||
if [ -n "$TMUX" ]; then
|
||||
for item in $(tmux list-sessions -F "#{?session_attached,1,0}:#S"); do
|
||||
if [[ "$item" == "1:"* ]]; then
|
||||
echo ${item/1:/}
|
||||
|
||||
Reference in New Issue
Block a user