Permalink
Browse files

Auto escape pasted URLs in zsh

  • Loading branch information...
1 parent 5c5ef5b commit a9ea12da615db703a2f176320a89a740266e4c6e @pengwynn committed Mar 26, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 zsh/zshrc.symlink
View
@@ -23,6 +23,14 @@ fi
autoload -U compinit
compinit
+# quote pasted URLs
+autoload -U url-quote-magic
+zle -N self-insert url-quote-magic
+
+# fun
+autoload -U tetris
+zle -N tetris
+bindkey ^T tetris
# load every completion after autocomplete loads
for config_file ($ZSH/**/completion.sh) source $config_file

0 comments on commit a9ea12d

Please sign in to comment.