zsh: add check for global variables (setopt warn_create_global)

This commit is contained in:
Thomas Preisner 2017-07-12 18:23:43 +02:00
parent 5fdbfcbfb3
commit 8beb935e98
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
# ===== important
# warns when creating a global variable from inside a function
setopt warn_create_global
# ===== basics
# disable beeps
setopt no_beep