]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Enable warn_create_global.
authorSimon Ruderich <simon@ruderich.org>
Sat, 27 Apr 2013 14:22:18 +0000 (16:22 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 27 Apr 2013 14:36:43 +0000 (16:36 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 7a7dbae35b9787625ea70be4cce52940ec83ae16..2712314b7d32840417b99dfe583b3f1b0cd9b923 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
 source_debug '. ~/.zsh/rc'
 
 
+# Warn when creating global variables from inside a function. Needs to be set
+# before declaring a function.
+setopt warn_create_global
+
+
 # HELPER FUNCTIONS
 
 # Return the name of the program which is called in the foreground with `fg`.