Last active
May 6, 2023 07:35
-
-
Save holly/27b29d090a9ff3e08b8b177f296e0096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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