gpt.sh
gpt.sh copied to clipboard
omz_history:fc:14: bad option: -s
Always this error shows up.
that is a shame. I guess this only works on bash. which shell are you using?
I use the zsh shell, but it's not working properly even in zsh.
try: print -s "${result}"
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