From e696edbf63b5ba5727b8bd8037dfa690b298b6a2 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 27 Apr 2013 16:22:18 +0200 Subject: [PATCH] zsh/rc: Enable warn_create_global. --- zsh/rc | 5 +++++ 1 file changed, 5 insertions(+) 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`. -- 2.44.1