Skip to content

Instantly share code, notes, and snippets.

@honeniq
Created January 12, 2018 02:58
Show Gist options
  • Save honeniq/013142abe39ff5b485b242e4691ed903 to your computer and use it in GitHub Desktop.
Save honeniq/013142abe39ff5b485b242e4691ed903 to your computer and use it in GitHub Desktop.
Install peco to ~/.local/bin/
#!/bin/sh
latesturl=https://api.github.com/repos/peco/peco/releases/latest
binpath=~/.local/bin/
zipurl=`curl -s ${latesturl} | grep -o 'https://.*peco_linux_amd64.tar.gz'`
echo ${zipurl}
curl -sL ${zipurl} | tar xz -C ${binpath} --strip=1 peco_linux_amd64/peco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment