dotfiles/.config/starship/init.sh
2023-06-23 10:02:12 -05:00

13 lines
382 B
Bash

__main() {
local major="${BASH_VERSINFO[0]}"
local minor="${BASH_VERSINFO[1]}"
if ((major > 4)) || { ((major == 4)) && ((minor >= 1)); }; then
source <(/home/chris/.nix-profile/bin/starship init bash --print-full-init)
else
source /dev/stdin <<<"$(/home/chris/.nix-profile/bin/starship init bash --print-full-init)"
fi
}
__main
unset -f __main