summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index fbb47b9..d52c186 100644
--- a/zshrc
+++ b/zshrc
@@ -179,6 +179,13 @@ autoload -U compinit
compinit
compdef _ssh ssha=ssh
+insert-comment() {
+ BUFFER="#$BUFFER"
+ zle accept-line
+}
+zle -N insert-comment
+bindkey "^[#" insert-comment
+
#######################################################################
#######################################################################
# SETUP ALIASES