aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index ecece72..35c4ea1 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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