Skip to content

Commit 5f74808

Browse files
authored
fix: move starship init bash to /etc/profile.d (#110)
We are doing shell detection this way because people will do weird stuff with their $0 or $SHELL to make this more robust. Related: ublue-os/aurora#1519 fixes: ublue-os/aurora#1518
1 parent 6755ac0 commit 5f74808

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# shellcheck shell=sh
2+
command -v starship >/dev/null 2>&1 || return 0
3+
4+
if [ "$(basename "$(readlink /proc/$$/exe)")" = "bash" ]; then
5+
eval "$(starship init bash)"
6+
fi

0 commit comments

Comments
 (0)