bashrc: android fish location

This commit is contained in:
dogeystamp 2024-08-13 21:43:47 -04:00
parent 0562de28c5
commit 27570344d6
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 11 additions and 5 deletions

View File

@ -1,5 +0,0 @@
#!/bin/sh
# Use fish in place of bash
# keep this line at the bottom of ~/.bashrc
[ -x /usr/bin/fish ] && SHELL=/usr/bin/fish exec fish

View File

@ -0,0 +1,11 @@
#!/bin/sh
{{- $fish_path := "/usr/bin/fish" }}
{{- if eq .chezmoi.os "android" }}
{{- $fish_path = "/data/data/com.termux/files/user/bin/fish" }}
{{- end }}
# Use fish in place of bash
# keep this line at the bottom of ~/.bashrc
[ -x {{ $fish_path }} ] && SHELL={{ $fish_path }} exec fish