|
@@ -2,34 +2,31 @@
|
|
|
# generic options and environment settings
|
|
|
#
|
|
|
|
|
|
-# use smart URL pasting and escaping
|
|
|
-autoload -Uz bracketed-paste-url-magic
|
|
|
-zle -N bracketed-paste bracketed-paste-url-magic
|
|
|
-autoload -Uz url-quote-magic
|
|
|
-zle -N self-insert url-quote-magic
|
|
|
+# Use smart URL pasting and escaping.
|
|
|
+autoload -Uz bracketed-paste-url-magic && zle -N bracketed-paste bracketed-paste-url-magic
|
|
|
+autoload -Uz url-quote-magic && zle -N self-insert url-quote-magic
|
|
|
|
|
|
# Treat single word simple commands without redirection as candidates for resumption of an existing job.
|
|
|
setopt AUTO_RESUME
|
|
|
|
|
|
+# Allow comments starting with `#` even in interactive shells.
|
|
|
+setopt INTERACTIVE_COMMENTS
|
|
|
+
|
|
|
# List jobs in the long format by default.
|
|
|
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
|
|
|
-
|
|
|
-# Send the HUP signal to running jobs when the shell exits.
|
|
|
-unsetopt HUP
|
|
|
+# Prevent runing all background jobs at a lower priority.
|
|
|
+setopt NO_BG_NICE
|
|
|
|
|
|
-# Report the status of background and suspended jobs before exiting a shell with job control;
|
|
|
-# a second attempt to exit the shell will succeed.
|
|
|
+# Prevent reporting the status of background and suspended jobs before exiting a shell with job control.
|
|
|
# NO_CHECK_JOBS is best used only in combination with NO_HUP, else such jobs will be killed automatically.
|
|
|
-unsetopt CHECK_JOBS
|
|
|
+setopt NO_CHECK_JOBS
|
|
|
+
|
|
|
+# Prevent sending the HUP signal to running jobs when the shell exits.
|
|
|
+setopt NO_HUP
|
|
|
|
|
|
# Remove path separtor from WORDCHARS.
|
|
|
WORDCHARS=${WORDCHARS//[\/]}
|
|
@@ -45,7 +42,7 @@ fi
|
|
|
|
|
|
# sets the window title and updates upon directory change
|
|
|
# more work probably needs to be done here to support multiplexers
|
|
|
-if (($+ztermtitle)); then
|
|
|
+if (( ${+ztermtitle} )); then
|
|
|
case ${TERM} in
|
|
|
xterm*|*rxvt)
|
|
|
precmd() { print -Pn "\e]0;${ztermtitle}\a" }
|