Skip to content

Instantly share code, notes, and snippets.

@ryul99
Last active April 8, 2023 12:09
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 ryul99/654abc52c87b28f0da98070cc6ac3b0c to your computer and use it in GitHub Desktop.
Save ryul99/654abc52c87b28f0da98070cc6ac3b0c to your computer and use it in GitHub Desktop.
btop download bash script
!#/bin/bash
set -e
TMP_BTOP_DIR="/tmp/$USER/btop/"
mkdir -p $TMP_BTOP_DIR
cd $TMP_BTOP_DIR
curl --remote-name-all -o "$TMP_BTOP_DIR/btop.tbz" --location $( \
curl -s https://api.github.com/repos/aristocratos/btop/releases/latest \
| grep "browser_download_url.*$(uname -m)-linux.*" \
| cut -d : -f 2,3 \
| tr -d \" )
tar xjf "$TMP_BTOP_DIR/btop.tbz"
cd btop
make install PREFIX="$HOME/.local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment