1
0
Fork 0
mirror of synced 2024-11-22 10:05:37 -05:00
garuda-common-settings/etc/skel/.bashrc_garuda

17 lines
409 B
Text
Raw Normal View History

2021-06-12 08:16:15 -04:00
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Load starship prompt
__main() {
local major="${BASH_VERSINFO[0]}"
local minor="${BASH_VERSINFO[1]}"
if ((major > 4)) || { ((major == 4)) && ((minor >= 1)); }; then
source <("/usr/bin/starship" init bash --print-full-init)
else
source /dev/stdin <<<"$("/usr/bin/starship" init bash --print-full-init)"
fi
}
__main
unset -f __main