Skip to content

Instantly share code, notes, and snippets.

@holly
Last active May 6, 2023 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holly/27b29d090a9ff3e08b8b177f296e0096 to your computer and use it in GitHub Desktop.
Save holly/27b29d090a9ff3e08b8b177f296e0096 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
if [[ -z "${GLOW_VERSION}" ]]; then
GLOW_VERSION=1.5.0
fi
DOWNLOAD_URL="https://github.com/charmbracelet/glow/releases/download/v${GLOW_VERSION}/glow_${GLOW_VERSION}_Linux_x86_64.tar.gz"
INSTALL_DIR=$HOME/.local/bin
if [[ ! -d $INSTALL_DIR ]]; then
mkdir -p $INSTALL_DIR
fi
curl -sfL $DOWNLOAD_URL | tar -C $INSTALL_DIR -xzf - glow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment