David Blume commited on 2021-07-02 00:04:57
Showing 1 changed files, with 12 additions and 0 deletions.
... | ... |
@@ -62,6 +62,18 @@ export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quo |
62 | 62 |
# Add to PATH only if not already in PATH. |
63 | 63 |
add_to_path $HOME/bin |
64 | 64 |
|
65 |
+# For interactive shells ('i' in $-), disable stty flow control (ctrl+s,ctrl+q) |
|
66 |
+case "$-" in |
|
67 |
+*i*) |
|
68 |
+ stty start '' |
|
69 |
+ stty stop '' |
|
70 |
+ stty -ixon # disable XON/XOFF flow control |
|
71 |
+ stty ixoff # enable sending (to app) of start/stop characters |
|
72 |
+ stty ixany # let any character restart output, not only start character |
|
73 |
+ ;; |
|
74 |
+*) ;; |
|
75 |
+esac |
|
76 |
+ |
|
65 | 77 |
alias findinpyfiles="find . -name \*.py -print0 | xargs -0 grep -nI" |
66 | 78 |
alias findinchppfiles="find . -type f \( -name \*.[ch]pp -or -name \*.[ch] \) -print0 | xargs -0 grep -nI" |
67 | 79 |
alias findincppfiles="find . -type f \( -name \*.cpp -or -name \*.c \) -print0 | xargs -0 grep -nI" |
68 | 80 |