From: Simon Ruderich Date: Sat, 27 Apr 2013 14:22:18 +0000 (+0200) Subject: zsh/rc: Enable warn_create_global. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e696edbf63b5ba5727b8bd8037dfa690b298b6a2;p=config%2Fdotfiles.git zsh/rc: Enable warn_create_global. --- diff --git a/zsh/rc b/zsh/rc index 7a7dbae..2712314 100644 --- a/zsh/rc +++ b/zsh/rc @@ -19,6 +19,11 @@ 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`.