ohmyzsh-theme-passion icon indicating copy to clipboard operation
ohmyzsh-theme-passion copied to clipboard

improve theme shell

Open LronDC opened this issue 2 years ago • 1 comments

passion.zsh-theme: line#106 local cmd="${$(fc -l | tail -1)#* }"

will return line number, and I think it's should be optimized image

add -n flag to fc command to ignore the line number.

local cmd="${$(fc -ln | tail -1)#* }"

LronDC avatar Jul 06 '22 08:07 LronDC

/cc @ChesterYue

LronDC avatar Jul 06 '22 08:07 LronDC

passion.zsh-theme: line#106 local cmd="${$(fc -l | tail -1)#* }"

will return line number, and I think it's should be optimized image

add -n flag to fc 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

ChesterYue avatar Mar 04 '23 13:03 ChesterYue

passion.zsh-theme: line#106 local cmd="${$(fc -l | tail -1)#* }" will return line number, and I think it's should be optimized image add -n flag to fc 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.

LronDC avatar Mar 06 '23 02:03 LronDC