1
0
Fork 0

0-init.sh: get git-prompt only if OS is *not* NixOS

This commit is contained in:
Pratham Patel 2024-01-07 18:37:33 +05:30
parent 89ff797946
commit 47b26d446b
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 6 additions and 4 deletions

View File

@ -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