bashrc: android fish location
This commit is contained in:
parent
0562de28c5
commit
27570344d6
@ -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
|
|
11
src/dot_config/bashrc.tmpl
Normal file
11
src/dot_config/bashrc.tmpl
Normal 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
|
Loading…
Reference in New Issue
Block a user