1
0
Fork 0
mirror of synced 2024-11-26 03:55:36 -05:00
garuda-common-settings/etc/skel/.bashrc_garuda
2021-06-12 12:16:15 +00:00

16 lines
409 B
Text

# 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