diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-22 12:27:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-22 12:27:36 +0300 |
| commit | e6394eb9dfacebd9e240eeabd186cc2f8e122904 (patch) | |
| tree | 5ada1c5329e3d6f481ec9ea887796281338f3eba | |
| parent | 8aa2cf2e8ffd6b2d25480a6057636b34e05c0dfa (diff) | |
update
| -rw-r--r-- | dotfiles/zsh/zshrc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dotfiles/zsh/zshrc b/dotfiles/zsh/zshrc index 49f4b32..c4925c6 100644 --- a/dotfiles/zsh/zshrc +++ b/dotfiles/zsh/zshrc @@ -1,7 +1,7 @@ -if [ ! -f $HOME/.nofish ]; then - # Use fish if it's installed - if [ -e /opt/homebrew/fish ]; then - exec /opt/homebrew/fish + # Use fish if it's installed and it's an interactive session +if [[ ! -z "$PS1" && ! -f $HOME/.nofish ]]; then + if [ -e /opt/homebrew/bin/fish ]; then + exec /opt/homebrew/bin/fish elif [ -e /bin/fish ]; then exec /bin/fish elif [ -e /usr/bin/fish ]; then |
