diff --git a/src/dot_config/bashrc b/src/dot_config/bashrc deleted file mode 100644 index 2de34d4..0000000 --- a/src/dot_config/bashrc +++ /dev/null @@ -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 diff --git a/src/dot_config/bashrc.tmpl b/src/dot_config/bashrc.tmpl new file mode 100644 index 0000000..22c6f02 --- /dev/null +++ b/src/dot_config/bashrc.tmpl @@ -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