diff --git a/shell/.mkshrc b/shell/.mkshrc index 7a1b6a29..89a9dcbe 100644 --- a/shell/.mkshrc +++ b/shell/.mkshrc @@ -1,3 +1 @@ -# If not running interactively, don't do anything -[[ $- != *i* ]] && return . $HOME/.profile diff --git a/shell/.profile b/shell/.profile index 332e31c5..8e479d31 100755 --- a/shell/.profile +++ b/shell/.profile @@ -1,5 +1,8 @@ # if not running interactively, bail -test "$- != *i*" || exit +case "$-" in +*i*) ;; +*) return;; +esac # source everything for file in $HOME/.sh.d/*; do