gpt.sh icon indicating copy to clipboard operation
gpt.sh copied to clipboard

omz_history:fc:14: bad option: -s

Open mindgitrwx opened this issue 2 years ago • 4 comments

screenshot 2023-04-16 at 10 53 17 PM

Always this error shows up.

mindgitrwx avatar Apr 16 '23 13:04 mindgitrwx

that is a shame. I guess this only works on bash. which shell are you using?

rain-1 avatar Apr 18 '23 07:04 rain-1

I use the zsh shell, but it's not working properly even in zsh.

mindgitrwx avatar Apr 18 '23 10:04 mindgitrwx

try: print -s "${result}"

rain-1 avatar Apr 22 '23 11:04 rain-1

I thought we could add if $SHELL eq "zsh" but even if I enter zsh then echo $SHELL it just prints bash anyway. Not sure how to check what shell it is. Maybe the 'add to history' thing could be configured in secret.sh

rain-1 avatar Apr 22 '23 11:04 rain-1