From 6c7993ec905cc84f9d98ad852a412b202f0d7e33 Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Tue, 25 Jun 2024 19:08:24 +1000 Subject: [PATCH] fixed bug with starship source and vi mode --- .zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 71815a9..9b17566 100644 --- a/.zshrc +++ b/.zshrc @@ -43,6 +43,9 @@ _fzf_compgen_dir() { eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" export STARSHIP_CONFIG="$HOME/.config/starship/config.toml" -eval "$(starship init zsh)" - +# Check that the function `starship_zle-keymap-select()` is defined. +# xref: https://github.com/starship/starship/issues/3418 +type starship_zle-keymap-select >/dev/null || { + eval "$(starship init zsh)" +} neofetch