Skip to content

Instantly share code, notes, and snippets.

@rostockahoi
Last active September 9, 2018 12:31
Show Gist options
  • Save rostockahoi/927210388148e7dd4fa1041c22dbd069 to your computer and use it in GitHub Desktop.
Save rostockahoi/927210388148e7dd4fa1041c22dbd069 to your computer and use it in GitHub Desktop.
One-line Micro-Editor installer
# Run as root
# Micro: https://github.com/zyedidia/micro
curl -s https://api.github.com/repos/zyedidia/micro/releases/latest \
| grep "browser_download_url.*linux64.tar.gz" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget --quiet --show-progress -O /tmp/tmp-micro.tar.gz -i - && \
tar -xzf /tmp/tmp-micro.tar.gz --directory /tmp && \
cp /tmp/micro*/micro /usr/local/bin && \
rm -r /tmp/micro* && rm /tmp/tmp-micro.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment