commit d4d0e3938342e1e876468cd0b53cb180d8a06b26 (patch)
parent dad51bde8738a0bac09dc76cd6938a870344f725
Author: Alex Karle <alex@karle.co>
Date: Tue, 30 Jul 2019 23:41:58 -0400
bash: reorganize lines in bashrc
Nothing much to see here...
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bash/bashrc b/bash/bashrc
@@ -4,9 +4,10 @@
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
+[[ $- != *i* ]] && return # I'm paranoid...
-# if interactive shell, disable XON/XOFF to allow forward search w CTRL-S
-[[ $- == *i* ]] && stty -ixon
+# Disable XON/XOFF to allow forward search w CTRL-S
+stty -ixon
# History Settings
shopt -s histappend # append to the history file, don't overwrite it