Last active
April 8, 2023 12:09
-
-
Save ryul99/654abc52c87b28f0da98070cc6ac3b0c to your computer and use it in GitHub Desktop.
btop download bash script
This file contains 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
!#/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