From 5cb76c748ed296b524d2a70b70cd4ad5af3f4d2f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 22 Apr 2025 12:05:39 +0300 Subject: use fish --- dotfiles/zsh/zshrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- cgit v1.2.3