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

2
zshrc
View file

@ -1,7 +1,7 @@
# Loading keybindings first because activating Vi-bindings resets all keybinds.
source ~/.zsh/keybindings.zsh
source ~/.zsh/general.zsh
source ~/.zsh/setopt.zsh
source ~/.zsh/general.zsh
source ~/.zsh/checks.zsh
source ~/.zsh/colors.zsh
source ~/.zsh/prompt.zsh