shell/git: install hub zsh completion on ubuntu

This commit is contained in:
Henrik Lissner 2018-01-01 02:09:10 -05:00
parent 70772e7de9
commit feea559aec
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -12,6 +12,7 @@ install() {
if [[ ! -e $XDG_BIN_HOME/hub ]]; then if [[ ! -e $XDG_BIN_HOME/hub ]]; then
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) 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 tar xzvf hub.tgz && cd hub-linux-*(/) && cp bin/hub $XDG_BIN_HOME/hub
wget -O $XDG_BIN_HOME/_hub https://raw.githubusercontent.com/github/hub/master/etc/hub.zsh_completion
fi fi
# Install diff-so-fancy # Install diff-so-fancy
if [[ ! -e $XDG_BIN_HOME/diff-so-fancy ]]; then if [[ ! -e $XDG_BIN_HOME/diff-so-fancy ]]; then