X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=2712314b7d32840417b99dfe583b3f1b0cd9b923;hb=e696edbf63b5ba5727b8bd8037dfa690b298b6a2;hp=7a7dbae35b9787625ea70be4cce52940ec83ae16;hpb=c464b056d6900011fcb2a22c7bb8cf130b21b238;p=config%2Fdotfiles.git 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`.