From 83acc074bd41436cd04d1a9ff017d8035bc23401 Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Wed, 6 Mar 2024 12:04:09 -0800 Subject: [PATCH 1/2] fix: force > as prompt even when theme exists Signed-off-by: Chapman Pendery --- shell/shellIntegration-rc.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shell/shellIntegration-rc.zsh b/shell/shellIntegration-rc.zsh index 49a6b28..1c9d5c1 100644 --- a/shell/shellIntegration-rc.zsh +++ b/shell/shellIntegration-rc.zsh @@ -3,4 +3,8 @@ if [[ -f $USER_ZDOTDIR/.zshrc ]]; then . $USER_ZDOTDIR/.zshrc fi -PS1="> " \ No newline at end of file +__tui_precmd() { + PS1="> " +} +PS1="> " +add-zsh-hook precmd __tui_precmd \ No newline at end of file From eb2af64555dcaa4cafac8c2747db04302ac6b971 Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Wed, 6 Mar 2024 12:40:54 -0800 Subject: [PATCH 2/2] fix: load add-zsh-hook Signed-off-by: Chapman Pendery --- shell/shellIntegration-rc.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/shellIntegration-rc.zsh b/shell/shellIntegration-rc.zsh index 1c9d5c1..3f8619f 100644 --- a/shell/shellIntegration-rc.zsh +++ b/shell/shellIntegration-rc.zsh @@ -1,3 +1,5 @@ +builtin autoload -Uz add-zsh-hook + if [[ -f $USER_ZDOTDIR/.zshrc ]]; then ZDOTDIR=$USER_ZDOTDIR . $USER_ZDOTDIR/.zshrc @@ -7,4 +9,5 @@ __tui_precmd() { PS1="> " } PS1="> " + add-zsh-hook precmd __tui_precmd \ No newline at end of file