jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.27k stars 605 forks source link

User-defined Commands does not work well with Ctrl+C #1331

Closed pjw91 closed 2 months ago

pjw91 commented 2 months ago

Given a script/command that runs in the foreground and execute it via tig "User-defined Commands", when pressing Ctrl+C, both the script and tig exit.

It is possible that Ctrl+C only terminates the script while keep tig running?

example script:

while true; do
  sleep 1
  echo yes
done

example .tigrc: bind generic + !./script