Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/dotfiles. my dotfiles (.vimrc, .bashrc, etc.)
Something went wrong. Try again.
12345678910111213141516171819202122232425262728#!/bin/bash
set -euo pipefailtest -z ${DEBUG:-} || set -xDOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
CACHE_KEY=/tmp/glacials/dotfiles/cache/ghtest -f $CACHE_KEY && exit 0
# This script installs gh, the GitHub CLI. This is helpful to be in its own# script because we use it to install an SSH key into GitHub, which is one of# the first steps of bootstrapping before we can clone the rest of the repo.echo "Installing gh"
cdn="https://raw.githubusercontent.com/glacials/dotfiles/main"f="functions.sh"d=$DOTFILES_DIRtest -f $d/$f && . $d/$f || (curl -s "$cdn/$f" > /tmp/$f && . /tmp/$f)
if ! gh --version 1>/dev/null 2>/dev/null; then # Install Homebrew run_script run_once_install_homebrew.sh install_now ghfi
mkdir -p /tmp/glacials/dotfiles/cachetouch $CACHE_KEY