Last active
April 9, 2016 10:35
-
-
Save abcang/4c35169b51ef0f75414921fce20d28e2 to your computer and use it in GitHub Desktop.
pecoの最新版インストール
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 | |
bit="" | |
if [ $(uname -m) = "x86_64" ]; then | |
bit="amd64" | |
elif [ $(uname -m) = "i686" ]; then | |
bit="386" | |
fi | |
version=$(curl -sI https://github.com/peco/peco/releases/latest | awk -F'/' '/^Location:/{print $NF}' | tr -d '\r\n') | |
url=https://github.com/peco/peco/releases/download/$version/peco_linux_$bit.tar.gz | |
curl -sSL $url | tar xz -C path/to/bin/ --strip=1 "peco_linux_$bit/peco" --no-same-owner --no-same-permissions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment