Closed LronDC closed 1 year ago
/cc @ChesterYue
passion.zsh-theme: line#106
local cmd="${$(fc -l | tail -1)#* }"
will return line number, and I think it's should be optimized
add
-n
flag tofc
command to ignore the line number.
local cmd="${$(fc -ln | tail -1)#* }"
I found fc can -number to get last so just local cmd="$(fc -ln -1)";
93e68a3eb714e361719e0ffce25c4d2108baf475
passion.zsh-theme: line#106
local cmd="${$(fc -l | tail -1)#* }"
will return line number, and I think it's should be optimizedadd
-n
flag tofc
command to ignore the line number.local cmd="${$(fc -ln | tail -1)#* }"
I found fc can -number to get last so just
local cmd="$(fc -ln -1)";
93e68a3
Nice.
passion.zsh-theme: line#106
local cmd="${$(fc -l | tail -1)#* }"
will return line number, and I think it's should be optimized![image](https://user-images.githubusercontent.com/59912384/177506492-08da0131-b3fe-49a7-9ab3-88002383229e.png)
add
-n
flag tofc
command to ignore the line number.local cmd="${$(fc -ln | tail -1)#* }"