Fix fresh prompt cleanup when options were specified

This commit is contained in:
Kenneth Benzie 2024-05-11 22:43:27 +01:00
parent fda79768b7
commit 3be19a22a0

View File

@ -64,7 +64,7 @@ fresh_line_one() {
local exit_code=$?
# Clean up if fresh is no longer the current prompt theme
if [[ "`prompt -c | tail -1 | xargs`" != "fresh" ]]; then
if [[ "`prompt -c | tail -1 | xargs`" != "fresh"* ]]; then
add-zsh-hook -d precmd fresh_line_one
return
fi