summaryrefslogtreecommitdiff
path: root/lib/misc.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/misc.zsh')
-rw-r--r--lib/misc.zsh13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/misc.zsh b/lib/misc.zsh
index 0b7cb2696..e90836475 100644
--- a/lib/misc.zsh
+++ b/lib/misc.zsh
@@ -1,6 +1,10 @@
-## smart urls
-autoload -U url-quote-magic
-zle -N self-insert url-quote-magic
+## Load smart urls if available
+for d in $fpath; do
+ if [[ -e "$d/url-quote-magic"]]; then
+ autoload -U url-quote-magic
+ zle -N self-insert url-quote-magic
+ fi
+done
## jobs
setopt long_list_jobs
@@ -20,3 +24,6 @@ alias afind='ack-grep -il'
if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
fi
+
+# recognize comments
+setopt interactivecomments