From f408ae894e4e10bbf4358c7c07bb9618ef1353e4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 7 Feb 2026 23:46:42 +0200 Subject: rename --- bash/bashrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bash/bashrc (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc new file mode 100644 index 0000000..ec2b10c --- /dev/null +++ b/bash/bashrc @@ -0,0 +1,15 @@ +# If shell is interactive +if [[ ! -z "$PS1" && ! -f $HOME/.nofish ]]; then + # Use fish if it's installed + if [ -e /opt/local/bin/fish ]; then + exec /opt/local/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 -- cgit v1.2.3