summaryrefslogtreecommitdiff
path: root/zsh/zshrc
blob: fa84d26e36e47f3dabda3a13aa6cdc9b9a4b7cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if [ -f $HOME/.nofish ]; then
   current_time=$(date +%s)
   file_time=$(stat -f %m $HOME/.nofish)
   time_diff=$((current_time - file_time))
   if [ $time_diff -gt 5 ]; then
      rm -vf $HOME/.nofish
   fi
fi
if [ ! -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
    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

alias f=fish