{"action":"created","issue":{"url":"https://api.github.com/repos/marzocchi/zsh-notify/issues/9","labels_url":"https://api.github.com/repos/marzocchi/zsh-notify/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/marzocchi/zsh-notify/issues/9/comments","events_url":"https://api.github.com/repos/marzocchi/zsh-notify/issues/9/events","html_url":"https://github.com/marzocchi/zsh-notify/issues/9","id":56015665,"number":9,"title":"notify-if-background:46: parse error near `]]'","user":{"login":"frdmn","id":944459,"avatar_url":"https://avatars.githubusercontent.com/u/944459?v=3","gravatar_id":"","url":"https://api.github.com/users/frdmn","html_url":"https://github.com/frdmn","followers_url":"https://api.github.com/users/frdmn/followers","following_url":"https://api.github.com/users/frdmn/following{/other_user}","gists_url":"https://api.github.com/users/frdmn/gists{/gist_id}","starred_url":"https://api.github.com/users/frdmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frdmn/subscriptions","organizations_url":"https://api.github.com/users/frdmn/orgs","repos_url":"https://api.github.com/users/frdmn/repos","events_url":"https://api.github.com/users/frdmn/events{/privacy}","received_events_url":"https://api.github.com/users/frdmn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-30T10:13:38Z","updated_at":"2015-01-31T15:24:57Z","closed_at":null,"body":"Hey,\r\n\r\ni'm trying to get the `next-iterm` branch working for me, but as soon as I interrupt a command (CTRL + C) I get the follwing message:\r\n\r\n    notify-if-background:46: parse error near `]]'\r\n\r\nUsing, ZSH and iTerm Build 2.9.20150128-nightly\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/marzocchi/zsh-notify/issues/comments/72321918","html_url":"https://github.com/marzocchi/zsh-notify/issues/9#issuecomment-72321918","issue_url":"https://api.github.com/repos/marzocchi/zsh-notify/issues/9","id":72321918,"user":{"login":"marzocchi","id":291474,"avatar_url":"https://avatars.githubusercontent.com/u/291474?v=3","gravatar_id":"","url":"https://api.github.com/users/marzocchi","html_url":"https://github.com/marzocchi","followers_url":"https://api.github.com/users/marzocchi/followers","following_url":"https://api.github.com/users/marzocchi/following{/other_user}","gists_url":"https://api.github.com/users/marzocchi/gists{/gist_id}","starred_url":"https://api.github.com/users/marzocchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marzocchi/subscriptions","organizations_url":"https://api.github.com/users/marzocchi/orgs","repos_url":"https://api.github.com/users/marzocchi/repos","events_url":"https://api.github.com/users/marzocchi/events{/privacy}","received_events_url":"https://api.github.com/users/marzocchi/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T15:24:57Z","updated_at":"2015-01-31T15:24:57Z","body":"Thank you for the investigation @frdmn! I couldn't find a clear explanation of why the syntax is fine in my shell but not in yours in zsh's docs, but since `[[` expects a test, changing the expression to `[[ -n ${TMUX+1} ]]` should probably fix it. Care to test it and send me a pull request?\r\n\r\nAs for the AppleScript syntax error: these usually happen when using zsh-notify's master branch with a recent iTerm2 (the AppleScript dictionary changed). The next-iterm uses the current AppleScript syntax. I'm using it with next-2.9.20150130-nightly and it's working.\r\n\r\n"}}