diff --git a/CHANGELOG.md b/CHANGELOG.md index 743f07a..2a56b2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### master - bugfix: "auto restore" feature stopped working - bugfix: prevent race condition when auto-saving with locks (@v9v) +- Multiple users on a system can now each run continuum on their own. ### v3.1.0, 2015-03-14 - properly quote scripts diff --git a/scripts/helpers.sh b/scripts/helpers.sh index b64fb36..5268e8e 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -24,7 +24,8 @@ current_tmux_server_pid() { all_tmux_processes() { # ignores `tmux source-file .tmux.conf` command used to reload tmux.conf - ps -Ao "command pid" | + local user_id=$(id -u) + ps -u $user_id -o "command pid" | \grep "^tmux" | \grep -v "^tmux source" }