zsh: add check for global variables (setopt warn_create_global)
This commit is contained in:
parent
5fdbfcbfb3
commit
8beb935e98
2 changed files with 5 additions and 1 deletions
|
|
@ -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
2
zshrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue