Skip to content

Commit

Permalink
use a simpler and more compatible check for monitor mode in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
cxreg committed Dec 13, 2012
1 parent 7e34db5 commit ee1606b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/smartcd_edit
Expand Up @@ -73,7 +73,7 @@ EOF
local mon_on=:
if [[ -n $ZSH_VERSION ]]; then
setopt localoptions && setopt nomonitor
elif [[ $(set -o) =~ monitor[[:space:]]*on ]]; then
elif [[ ":$SHELLOPTS:" = *:monitor:* ]]; then
mon_on="set -m"
set +m
fi
Expand Down

0 comments on commit ee1606b

Please sign in to comment.