Skip to content

Instantly share code, notes, and snippets.

@Donut3228
Last active September 6, 2020 04:27
Show Gist options
  • Save Donut3228/285436dab5db851450534e95a71b9848 to your computer and use it in GitHub Desktop.
Save Donut3228/285436dab5db851450534e95a71b9848 to your computer and use it in GitHub Desktop.
#!/bin/bash
GIT_PROMPT_SCRIPT="https://gist.githubusercontent.com/Donut3228/14c1ee7ec1fc272810d29ebf9909e1c3/raw/.git-prompt.sh"
if [[ -f /usr/bin/yum ]]; then
yum -q install -y autojump >/dev/null 2>&1
fi
if [[ -f /usr/bin/autojump && -f /usr/share/autojump/autojump.bash ]]; then
source /usr/share/autojump/autojump.sh || true >/dev/null 2>&1
fi
if [[ -f /usr/bin/wget ]]; then
wget -q -O /root/.git-prompt.sh "$GIT_PROMPT_SCRIPT" >/dev/null 2>&1
else
if [[ -f /usr/bin/yum ]]; then
yum install -y wget
wget -q -O /root/.git-prompt.sh "$GIT_PROMPT_SCRIPT" >/dev/null 2>&1
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment