How to stop execution of command from prompt in shell?
2
votes
3
answers
5224
views
My prompt contains some info about git repo under current directory. When I do
cd
somewhere, my shell executes some commands (i.e. git status
).
Is there a way to stop execution of such commands via the same terminal? Sending signals from keyboard (e.g. via Ctrl+c) doesn't work.
### Update #1
I don't want to disable those commands permanently - I just want them to start running and then stop them in runtime.
Asked by abyss.7
(189 rep)
Jan 10, 2018, 01:32 PM
Last activity: Jul 22, 2025, 03:02 AM
Last activity: Jul 22, 2025, 03:02 AM