Skip to content

Instantly share code, notes, and snippets.

@Eboubaker
Created September 21, 2022 13:13
Show Gist options
  • Save Eboubaker/c699664f0779fc477bc476b984aaf509 to your computer and use it in GitHub Desktop.
Save Eboubaker/c699664f0779fc477bc476b984aaf509 to your computer and use it in GitHub Desktop.
Auto answer "Terminate batch job (Y/N)" message on windows terminal

the message is very annoying but can be handled using clink.
install clink and open file C:\Users\<username>\AppData\Local\clink\settings and set property terminate_autoanswer to 1

# name: Auto-answer terminate prompt
# type: enum
# Automatically answers cmd.exe's 'Terminate batch job (Y/N)?' prompts. 0 =
# disabled, 1 = answer 'Y', 2 = answer 'N'.
terminate_autoanswer = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment