From c488a6f46a9d034daaf2e8d4a51b29969c9e8d0e Mon Sep 17 00:00:00 2001 From: weiwei Date: Fri, 28 Jul 2017 15:46:39 +0800 Subject: [PATCH] Add recognize comments starting with '#', compatible with bash/omz --- modules/environment/README.md | 1 + modules/environment/init.zsh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/modules/environment/README.md b/modules/environment/README.md index e5eec80..6539e80 100644 --- a/modules/environment/README.md +++ b/modules/environment/README.md @@ -15,6 +15,7 @@ ZSH Options | AUTO_RESUME | Resume existing jobs before creating a new job | | LONG_LIST_JOBS | Use the verbose list format by default | | NOTIFY | Report job status immediately instead of waiting for new prompt | +| INTERACTIVE_COMMENTS | Recognize comments starting with `#` | | BG_NICE | Disabled to prevent jobs being given a lower priority | | HUP | Disabed to prevent SIGHUP to jobs on shell close | | CHECK_JOBS | Disabled to prevent job report on shell close | diff --git a/modules/environment/init.zsh b/modules/environment/init.zsh index 52aab18..e608153 100644 --- a/modules/environment/init.zsh +++ b/modules/environment/init.zsh @@ -27,6 +27,9 @@ setopt LONG_LIST_JOBS # Report the status of background jobs immediately, rather than waiting until just before printing a prompt. setopt NOTIFY +# Recognize comments starting with `#`. +setopt INTERACTIVE_COMMENTS + # Run all background jobs at a lower priority. This option is set by default. unsetopt BG_NICE