mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Merge pull request #76 from xsteve/feature/fix-has-session
Work around a problem with tmux has-session:
This commit is contained in:
@@ -253,7 +253,7 @@ initialize_session() {
|
|||||||
tmuxifier-tmux start-server
|
tmuxifier-tmux start-server
|
||||||
|
|
||||||
# Check if the named session already exists.
|
# Check if the named session already exists.
|
||||||
if tmuxifier-tmux has-session -t "$session:" 2>/dev/null; then
|
if tmuxifier-tmux list-sessions | grep -q "^$session:"; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user