aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-08-25 18:28:51 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-08-25 18:28:51 +0300
commitdf11592d131811caf35742fcedae241c6af4deb3 (patch)
treeefa806bc7540fc14b956a98c1251da4875473ee8
parentos.sh: support Linux Mint (diff)
downloadlinux-home-df11592d131811caf35742fcedae241c6af4deb3.tar.gz
linux-home-df11592d131811caf35742fcedae241c6af4deb3.zip
.bashrc: add stty hack
Diffstat (limited to '')
-rw-r--r--%HOME%/.bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc
index abca721..5404fc9 100644
--- a/%HOME%/.bashrc
+++ b/%HOME%/.bashrc
@@ -69,3 +69,9 @@ if command -v vim > /dev/null 2>&1; then
elif command -v nano > /dev/null 2>&1; then
export EDITOR=nano
fi
+
+# I've bumped into this on Linux Mint: Ctrl+S causes my terminal to freeze
+# completely (Ctrl+Q is a temporary escape, stty is the cure).
+os_is_cygwin \
+ || command -v stty > /dev/null 2>&1 \
+ && stty -ixon