summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-07 23:46:42 +0200
committerPaul Buetow <paul@buetow.org>2026-02-07 23:46:42 +0200
commitf408ae894e4e10bbf4358c7c07bb9618ef1353e4 (patch)
tree0722f09473a58f1b9027e271cd6bd0e96e7a390d /zsh
parentbf56ef64278a90acab9116311e649e762d39cd34 (diff)
rename
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc22
1 files changed, 22 insertions, 0 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
new file mode 100644
index 0000000..fa84d26
--- /dev/null
+++ b/zsh/zshrc
@@ -0,0 +1,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