diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2,7 +2,7 @@ # ~/.bashrc # -[ "$(uname)" = Darwin ] && source "$HOME/.macos" +source "$HOME/.macos" source "$HOME/.env" source "$HOME/.path" @@ -17,11 +17,11 @@ source "$HOME/.fzfrc" [ -r "$HOME/.bash_local" ] && source "$HOME/.bash_local" if command -v fish > /dev/null; then - __FISH_IS_ACTIVE=${__FISH_IS_ACTIVE:-0} - if [[ -z ${BASH_EXECUTION_STRING} && $__FISH_IS_ACTIVE -eq 0 ]] + __FISH_IS_ACTIVE="$__FISH_IS_ACTIVE" + if [[ -z "$BASH_EXECUTION_STRING" && -z "$__FISH_IS_ACTIVE" ]] then shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION='' - exec env __FISH_IS_ACTIVE=1 fish $LOGIN_OPTION + exec env __FISH_IS_ACTIVE=1 SHELL="$(which fish)" fish $LOGIN_OPTION fi - export __FISH_IS_ACTIVE=0 + unset __FISH_IS_ACTIVE fi |