Skip to content

Commit dd0eebb

Browse files
committed
Got rid of external command cat
1 parent 434db1f commit dd0eebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agkozak-zsh-prompt.plugin.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,8 @@ _agkozak_async_init() {
565565
# AGKOZAK_TRAPUSR1_FUNCTION
566566
############################################################
567567
TRAPUSR1() {
568-
# read from temp file
569-
psvar[3]=$(cat /tmp/agkozak_zsh_prompt_$$)
568+
# Set prompt from contents of temporary file
569+
psvar[3]=$(print -n "$(< /tmp/agkozak_zsh_prompt_$$)")
570570

571571
# Reset asynchronous process number
572572
typeset -g AGKOZAK_USR1_ASYNC_WORKER=0

0 commit comments

Comments
 (0)