Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/prompt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ To cache the prompt initialization:

`zstyle ':zephyr:plugin:prompt' 'use-cache' 'yes'`

To always use the prompt, regardless of terminal type:

`zstyle ':zephyr:plugin:prompt' 'always-use-prompt' 'yes'`

[16.2.8]: https://zsh.sourceforge.io/Doc/Release/Options.html#Prompting
9 changes: 8 additions & 1 deletion plugins/prompt/prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ function run_promptinit {
zstyle -a ':zephyr:plugin:prompt' theme 'prompt_argv' \
|| prompt_argv=(starship zephyr)
if [[ $TERM == (dumb|linux|*bsd*) ]]; then
prompt 'off'
zstyle -b ':zephyr:plugin:prompt' 'always-use-theme' 'autheme'
if [[ $autheme == "yes" ]]; then
if (( $#prompt_argv > 0 )); then
prompt "$prompt_argv[@]"
fi
else
prompt 'off'
fi
elif (( $#prompt_argv > 0 )); then
prompt "$prompt_argv[@]"
fi
Expand Down