diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -14,7 +14,9 @@ source "$HOME/.aliases" source "$HOME/.fzfrc" if command -v fish > /dev/null; then - if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} ]] + if [[ ( $(uname) == Darwin || # the ps command is not invalid in bsd + "$(ps --no-header --pid=$PPID --format=comm)" != "fish") && \ + -z ${BASH_EXECUTION_STRING} ]] then shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION='' exec fish $LOGIN_OPTION |