summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/zsh/zshrc15
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