mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
3071ea205d
The code that is being evaled without the `--print-full-init` flag is this: ```sh __main() { local major="${BASH_VERSINFO[0]}" local minor="${BASH_VERSINFO[1]}" if ((major > 4)) || { ((major == 4)) && ((minor >= 1)); }; then source <(/nix/store/...-starship-1.3.0/bin/starship init bash --print-full-init) else source /dev/stdin <<<"$(/nix/store/...-starship-1.3.0/bin/starship init bash --print-full-init)" fi } __main unset -f __main ``` This code checks for bash version >= 4.1 , which has been released in 2009. Since this version is widely unavailable in nixpkgs, we can skip one program invocation and directly call `starship init bash --print-full-init`. |
||
---|---|---|
.. | ||
accounts | ||
config | ||
i18n/input-method | ||
launchd | ||
lib | ||
lib-bash | ||
misc | ||
po | ||
programs | ||
services | ||
targets | ||
default.nix | ||
files.nix | ||
home-environment.nix | ||
manual.nix | ||
modules.nix | ||
systemd-activate.rb | ||
systemd-activate.sh | ||
systemd.nix | ||
xcursor.nix | ||
xresources.nix | ||
xsession.nix |