From 96ea9235bf3a9938ae5051704bc8a70b1eabd0ee Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 31 Dec 2025 10:50:49 +0200 Subject: feat(.bashrc): Always reset stty on a new input prompt Sometimes, a command will end abruptly and will leave the terminal in a weird state, commonly making your inputs hidden. This makes sure no such effect ever happens. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index ea60ae6..4588d5c 100644 --- a/.bashrc +++ b/.bashrc @@ -216,7 +216,7 @@ export PROMPT_COMMAND="shell_var_fix;" trap "SECONDS=0;___timer=''" SIGUSR2 export PS_COMM="ps_space; ps_git; ps_exit; ps_duration; ps_dir; ps_nl" - export PS1="$(left_cap)\$(ps_user)$(right_cap) \$(ps_precursor) " + export PS1="$(left_cap)\$(ps_user)$(right_cap) \$(ps_precursor)\$(stty sane) " # Show time below command: # export PS0=" $(left_cap 'o' "$PS_TRIANGLE_BOT") \A$(right_cap)\n\$(kill -s SIGUSR2 $$)" export PS0="\$(kill -s SIGUSR2 $$)" -- cgit v1.3.1-26-gb76a