]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/00_varsetup
set warn_create_global and unglobal a few
[zsh.git] / .zsh / zshrc / 00_varsetup
index 68ec3862bdf5962d919a341d0aa435591a0d0178..a49f67da082ec0f64ed4fdb3a8ac04a308355bd9 100644 (file)
@@ -16,4 +16,7 @@ typeset -ga preexec_functions
 typeset -ga precmd_functions
 typeset -ga chpwd_functions
 
+# warn on accidental creation of global variables
+setopt warn_create_global
+
 # vim:ft=zsh