Browse Source

zsh: move local config into .zsh folder as local.zsh

Thomas Dy 3 years ago
parent
commit
85c7b5994b
2 changed files with 2 additions and 4 deletions
  1. 1 0
      .gitignore
  2. 1 4
      .zshrc

+ 1 - 0
.gitignore

@@ -22,6 +22,7 @@
 !.vimrc
 !.zsh
 !.zsh/**
+.zsh/local.zsh
 !.zshrc
 !.gitmodules
 !.gitignore

+ 1 - 4
.zshrc

@@ -5,10 +5,7 @@ zplug t413/zsh-background-notify
 zplug rimraf/k
 zplug tarrasch/zsh-bd
 zplug zsh-users/zsh-syntax-highlighting, defer:2
-zplug "${HOME}/.zsh", from:local
-if [ -f "$HOME/.zshrc.local" ]; then
-  source $HOME/.zshrc.local
-fi
+zplug "${HOME}/.zsh", from:local, defer:1
 zplug "${HOME}/.zsh/fzf", from:local, if:"command -v fzf"
 
 if ! zplug check --verbose; then