Skip to content

Commit

Permalink
p10k: make f3 prompt async
Browse files Browse the repository at this point in the history
  • Loading branch information
geodimm committed Feb 13, 2024
1 parent d8b3478 commit 97cdb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/p10k/segments/form3_shell.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function prompt_form3_shell() {
if find ${session_file} -mmin -5 2>/dev/null| grep -q "."; then
output="$(cat ${session_file})"
else
output="$(f3 auth info --json 2>/dev/null | tee ${session_file})"
(f3 auth info --json | tee ${session_file} &!) > /dev/null 2>&1
fi

local session_expiry="$(echo ${output} | jq -Rr 'fromjson? | .expiry' 2>/dev/null)"
Expand Down

0 comments on commit 97cdb86

Please sign in to comment.