Merge pull request #76 from xsteve/feature/fix-has-session

Work around a problem with tmux has-session:
This commit is contained in:
2017-04-27 19:18:49 +01:00
committed by GitHub

View File

@@ -253,7 +253,7 @@ initialize_session() {
tmuxifier-tmux start-server
# 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
fi