mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-25 14:01:03 +00:00
[U] fc -ln -1 to get last cmd
This commit is contained in:
parent
0141b0889a
commit
93e68a3eb7
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ output_command_execute_after() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# cmd
|
# cmd
|
||||||
local cmd="${$(fc -ln | tail -1)#* }";
|
local cmd="$(fc -ln -1)";
|
||||||
local color_cmd="";
|
local color_cmd="";
|
||||||
if $1;
|
if $1;
|
||||||
then
|
then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue