浏览代码

local files existence check

Josh Bicking 4 年之前
父节点
当前提交
78aa079ea0
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      zsh/.zshrc

+ 3 - 1
zsh/.zshrc

@@ -1,5 +1,7 @@
 # local zsh config
-source ~/.zshrc.local
+if [ -f ~/.zshrc.local ]; then
+    source ~/.zshrc.local
+fi
 
 # load antigen if it exists
 if [ -h ~/.antigen.zsh ]