You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using print -z we inline the command in the prompt and the user can confirm by executing it via enter.
This also removes print -s for storing it in history, as executing it should be enough.
Also removes the echo for a new line.
Also not sure why, but shouldn't TARGET, TMPFILE and FIXED_CMD be locals so they are unset after?
The text was updated successfully, but these errors were encountered:
By submitting this issue, you agree to follow our Code of Conduct.
Describe the need
The confirmation and print for history with use of --shell-out (default in
ghcs
) is unnecessary if the confirmation can just be execution.Version
gh-copilot version 1.0.3 (2024-05-08)
Code
By using
print -z
we inline the command in the prompt and the user can confirm by executing it via enter.This also removes print -s for storing it in history, as executing it should be enough.
Also removes the echo for a new line.
Also not sure why, but shouldn't
TARGET
,TMPFILE
andFIXED_CMD
be locals so they are unset after?The text was updated successfully, but these errors were encountered: