ohmyzsh-theme-passion
ohmyzsh-theme-passion copied to clipboard
improve theme shell
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 to fc
command to ignore the line number.
local cmd="${$(fc -ln | tail -1)#* }"
/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.