0-init.sh: get git-prompt only if OS is *not* NixOS
This commit is contained in:
parent
89ff797946
commit
47b26d446b
|
@ -10,8 +10,10 @@ if [[ ! -f "${HOME}/.config/alacritty/platform.yml" ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -f "${HOME}/.local/scripts/other-common-scripts/git-prompt.sh" ]]; then
|
||||
pushd "${HOME}/.local/scripts/other-common-scripts"
|
||||
wget 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh'
|
||||
popd
|
||||
if ! command -v nixos-rebuild > /dev/null; then
|
||||
if [[ ! -f "${HOME}/.local/scripts/other-common-scripts/git-prompt.sh" ]]; then
|
||||
pushd "${HOME}/.local/scripts/other-common-scripts"
|
||||
wget 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh'
|
||||
popd
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue