shell/git: add ubuntu install

This commit is contained in:
Henrik Lissner 2018-01-01 01:56:43 -05:00
parent 8e372241d8
commit 50042ed2e3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -7,10 +7,22 @@ install() {
macos) brew install git git-lfs hub diff-so-fancy git-standup git-extras ;; macos) brew install git git-lfs hub diff-so-fancy git-standup git-extras ;;
arch) pacaur --needed --noconfirm --noedit -S git hub git-lfs diff-so-fancy git-standup-git git-extras ;; arch) pacaur --needed --noconfirm --noedit -S git hub git-lfs diff-so-fancy git-standup-git git-extras ;;
debian) debian)
sudo apt-get install -y git hub diff-so-fancy git-standup git-extras sudo apt-get install -y git
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash # Install hub
sudo apt-get install -y git-fls if [[ ! -e $XDG_BIN_HOME/hub ]]; then
git lfs install wget -O hub.tgz $(curl -s https://api.github.com/repos/github/hub/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep linux-amd64)
tar xzvf hub.tgz && cd hub-linux-*(/) && cp bin/hub $XDG_BIN_HOME/hub
fi
# Install diff-so-fancy
if [[ ! -e $XDG_BIN_HOME/diff-so-fancy ]]; then
wget -O $XDG_BIN_HOME/diff-so-fancy https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy
chmod +x $XDG_BIN_HOME/diff-so-fancy
fi
# Install git-lfs
if ! command -v git-lfs >/dev/null; then
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install -y git-lfs && git lfs install
fi
;; ;;
esac esac
} }