]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: Don't error out if pattern doesn't match
authorSamir Benmendil <me@rmz.io>
Sat, 9 Apr 2016 15:46:55 +0000 (16:46 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 10 Apr 2016 00:06:02 +0000 (01:06 +0100)
Avoids having to quote urls.

zshrc

diff --git a/zshrc b/zshrc
index aad02d395f618d849012cdb1b48017377b83903d..c4d1d1d081cd668179932ae16c13459a7f889cc6 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -24,7 +24,7 @@ autoload -U compinit; compinit -d "$ZSH_CACHE/zcompdump"
 
 # miscelaneous options
 setopt extendedglob
-setopt cshnullglob  # if glob does not match, remove pattern, if no glob matches print error
+setopt nonomatch    # if glob does not match, pass it to the command
 setopt numeric_glob_sort # sort numerically not lexically
 setopt noclobber    # don't allow overwriting files with '>', use '>!' instead
 setopt notify