Skip to content

Commit

Permalink
Got rid of external command cat
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed Dec 23, 2018
1 parent 434db1f commit dd0eebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agkozak-zsh-prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@ _agkozak_async_init() {
# AGKOZAK_TRAPUSR1_FUNCTION
############################################################
TRAPUSR1() {
# read from temp file
psvar[3]=$(cat /tmp/agkozak_zsh_prompt_$$)
# Set prompt from contents of temporary file
psvar[3]=$(print -n "$(< /tmp/agkozak_zsh_prompt_$$)")

# Reset asynchronous process number
typeset -g AGKOZAK_USR1_ASYNC_WORKER=0
Expand Down

0 comments on commit dd0eebb

Please sign in to comment.