From 7d426ae1abb478272d87a7ea9e2de9414c73736b Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Sun, 24 Nov 2024 13:28:38 +0100 Subject: [PATCH] fix(ZSH): instant prompt - fix error with ssh-agent --- .config/zsh/{.zshrc.d/ssh-agent.zsh => .before.zshrc.zsh} | 0 .config/zsh/.zshrc | 4 ++++ 2 files changed, 4 insertions(+) rename .config/zsh/{.zshrc.d/ssh-agent.zsh => .before.zshrc.zsh} (100%) diff --git a/.config/zsh/.zshrc.d/ssh-agent.zsh b/.config/zsh/.before.zshrc.zsh similarity index 100% rename from .config/zsh/.zshrc.d/ssh-agent.zsh rename to .config/zsh/.before.zshrc.zsh diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index d04b903..fe3db1e 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -1,5 +1,9 @@ #!/usr/bin/env zsh +# Scripts that should be loaded before instant prompt +# because they ask something in prompt +source ${ZDOTDIR:-$HOME}/.before.zshrc.zsh + # Enable Powerlevel10k instant prompt. Should stay close to the top of .zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below.