Created
January 12, 2018 02:58
-
-
Save honeniq/013142abe39ff5b485b242e4691ed903 to your computer and use it in GitHub Desktop.
Install peco to ~/.local/bin/
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/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