-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid showing the 130 error code after hitting ^C
When a user hits ^C on command line to cancel entering a lengthy command, $! in __lp_set_prompt is set to 130 (128 + SIGINT). Displaying this error on the input line (especially in warning colours) makes little sense. Therefore, liquidprompt should check if the command submitted is a real command or is it part of PROMPT_COMMAND in which case the error does not come from a user's command and should not be presented.
- Loading branch information
Showing
1 changed file
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters