From 7543082314056ceda4314df7906920d6d2721af5 Mon Sep 17 00:00:00 2001 From: LronDC Date: Wed, 6 Jul 2022 16:13:22 +0800 Subject: [PATCH] improve theme shell --- passion.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passion.zsh-theme b/passion.zsh-theme index 4f31220..140422b 100644 --- a/passion.zsh-theme +++ b/passion.zsh-theme @@ -103,7 +103,7 @@ output_command_execute_after() { fi # cmd - local cmd="${$(fc -l | tail -1)#* }"; + local cmd="${$(fc -ln | tail -1)#* }"; local color_cmd=""; if $1; then