diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-22 12:05:39 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-22 12:05:39 +0300 |
| commit | 5cb76c748ed296b524d2a70b70cd4ad5af3f4d2f (patch) | |
| tree | ca196920ed077505f274b1717b439f63e0a16a73 | |
| parent | b2644da5f869d0b3fc6de736fcdac4dd9c831682 (diff) | |
use fish
| -rw-r--r-- | dotfiles/zsh/zshrc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dotfiles/zsh/zshrc b/dotfiles/zsh/zshrc index d11d1c2..49f4b32 100644 --- a/dotfiles/zsh/zshrc +++ b/dotfiles/zsh/zshrc @@ -1,3 +1,18 @@ +if [ ! -f $HOME/.nofish ]; then + # Use fish if it's installed + if [ -e /opt/homebrew/fish ]; then + exec /opt/homebrew/fish + elif [ -e /bin/fish ]; then + exec /bin/fish + elif [ -e /usr/bin/fish ]; then + exec /usr/bin/fish + elif [ -e /data/data/com.termux/files/usr/bin/fish ]; then + exec /data/data/com.termux/files/usr/bin/fish + fi + + echo 'I might want to install fish on this host' +fi + if [[ ! -n "$TMUX" && ! -f ~/.tmux.disable ]]; then source ~/.zshrc_d/tmux.source.zsh tmux::new |
