We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434db1f commit dd0eebbCopy full SHA for dd0eebb
agkozak-zsh-prompt.plugin.zsh
@@ -565,8 +565,8 @@ _agkozak_async_init() {
565
# AGKOZAK_TRAPUSR1_FUNCTION
566
############################################################
567
TRAPUSR1() {
568
- # read from temp file
569
- psvar[3]=$(cat /tmp/agkozak_zsh_prompt_$$)
+ # Set prompt from contents of temporary file
+ psvar[3]=$(print -n "$(< /tmp/agkozak_zsh_prompt_$$)")
570
571
# Reset asynchronous process number
572
typeset -g AGKOZAK_USR1_ASYNC_WORKER=0
0 commit comments