aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 0c8c5df..4ea9b27 100644
--- a/.bashrc
+++ b/.bashrc
@@ -4,7 +4,7 @@
export BASH_PROFILE=loaded && . "$HOME/.bash_profile";
# bail if not interactive
-[[ $- != *i* ]] && return;
+echo $- | grep -q "i" || return;
# cd using directory name
shopt -s autocd;