diff options
Diffstat (limited to 'install.conf.yaml')
-rw-r--r-- | install.conf.yaml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/install.conf.yaml b/install.conf.yaml index 36efa56..976095c 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -50,6 +50,18 @@ curl https://cht.sh/:bash_completion >~/.local/share/bash-completion/completions/cht; curl https://cheat.sh/:zsh >~/.local/share/zsh/site-functions/_cht) + - description: Installing gh + command: td=$(mktemp -d) && + arch="$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/ | sed s/armv7l/armv6/)" && + tag="$(curl -sI https://github.com/cli/cli/releases/latest | grep -Po 'tag\/v?\K(\S+)')" && + name="gh_${tag}_linux_${arch}" && + url="https://github.com/cli/cli/releases/latest/download/${name}.tar.gz" && + curl -sL $url | tar -C $td -xz && + test -x $td/$name/bin/gh && + install -Dm 755 $td/$name/bin/gh ~/.local/bin/gh && ( + gh completion --shell bash >~/.local/share/bash-completion/completions/gh; + gh completion --shell zsh >~/.local/share/zsh/site-functions/_gh) + - description: Installing git-open command: curl -sL "https://raw.githubusercontent.com/paulirish/git-open/master/git-open" >~/.local/bin/git-open && |