From 2671eabf7d4e28a401d0ba20a68a352858770810 Mon Sep 17 00:00:00 2001 From: He4eT Date: Tue, 16 Apr 2024 10:27:01 +0200 Subject: [PATCH] zsh: disable async git prompt --- root/.zshrc | 3 +++ zsh/themes/custom-minimal.zsh-theme | 1 + 2 files changed, 4 insertions(+) diff --git a/root/.zshrc b/root/.zshrc index eff5c41..a3b21dd 100644 --- a/root/.zshrc +++ b/root/.zshrc @@ -21,6 +21,9 @@ clear export ZSH="/home/odd/.oh-my-zsh" ZSH_CUSTOM="/home/odd/dotfiles/zsh" +# https://github.com/ohmyzsh/ohmyzsh/issues/12328#issuecomment-2043492331 +zstyle ':omz:alpha:lib:git' async-prompt no + ZSH_THEME="custom-minimal" MODE_INDICATOR="%F{yellow}◼%f" VI_MODE_CURSOR_INSERT=2 diff --git a/zsh/themes/custom-minimal.zsh-theme b/zsh/themes/custom-minimal.zsh-theme index 50673a8..d9e5fa3 100644 --- a/zsh/themes/custom-minimal.zsh-theme +++ b/zsh/themes/custom-minimal.zsh-theme @@ -27,6 +27,7 @@ precmd() { local exit_code=$? if [ $exit_code -ne 0 ]; then + echo echo "┌╼ Exit code: $exit_code" fi }