From f0a795d8ac68be44347dbb7face8956c65cb8853 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 6 Jun 2022 17:26:37 +0100 Subject: [PATCH] Fix fig integration --- zshrc.zsh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zshrc.zsh b/zshrc.zsh index 62bbbc1..fbd18ca 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -1,7 +1,9 @@ # Fig binary can be installed to $HOME, so ammend the $PATH export PATH="$PATH:$HOME/.local/bin" # Fig pre block. Keep at the top of this file. -eval "$(fig init zsh pre)" +if [ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]; then + "$HOME/.fig/shell/zshrc.pre.zsh" +fi # User configuration # history @@ -139,5 +141,6 @@ fi eval "$(starship init zsh)" # Fig post block. Keep at the bottom of this file. -eval "$(fig init zsh post)" - +if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then + "$HOME/.fig/shell/zshrc.post.zsh" +fi