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
Copy file name to clipboardExpand all lines: .zshrc
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -452,7 +452,16 @@ cmd() {
452
452
fi
453
453
local cmd=$(llm -x -s "We are on the command line for a system identified as \`$(uname -a)\`. Show me a command line comand for the following in a code block. Be brief and concise.""$*")
454
454
echo -e "\n\x1b[32m$cmd\x1b[0m\n"
455
-
echo -n "$cmd"| pbcopy
455
+
456
+
# Ask for confirmation (default to yes)
457
+
echo -n "Run this command? [Y/n] "
458
+
read -r response
459
+
# If response is empty (just pressed enter) or starts with y/Y, run the command
0 commit comments