Created
September 21, 2018 20:33
-
-
Save kostaz/6e0cf1eee35a34cd6589ec15b58e682c to your computer and use it in GitHub Desktop.
Install ripgrep on Ubuntu
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 | |
[[ $UID == 0 ]] || { echo "run as sudo to install"; exit 1; } | |
REPO="https://github.com/BurntSushi/ripgrep/releases/download/" | |
RG_LATEST=$(curl -sSL "https://api.github.com/repos/BurntSushi/ripgrep/releases/latest" | jq --raw-output .tag_name) | |
RELEASE="${RG_LATEST}/ripgrep-${RG_LATEST}-x86_64-unknown-linux-musl.tar.gz" | |
TMPDIR=$(mktemp -d) | |
cd $TMPDIR | |
wget -O - ${REPO}${RELEASE} | tar zxf - --strip-component=1 | |
mv rg /usr/local/bin/ | |
mv rg.1 /usr/local/share/man/man1/ | |
mv complete/rg.bash-completion /usr/share/bash-completion/completions/rg | |
mandb |
thx!
thx! man
Hello, need your help. The matter is that Mint does not accept that ppa. Moreover, as a result of script effect there is no opportunity to install ripgrep other way - error with reference to /var/..../ripgrep...deb. and json file.
I need your help to revive it back, please.
Observed that in current release (12.1.1) rg1
is now in the doc
subdir
$ curl -Ls https://github.com/BurntSushi/ripgrep/releases/download/12.1.1/ripgrep-12.1.1-x86_64-unknown-linux-musl.tar.gz | \
tar -ztf - | grep 'rg\.1'
ripgrep-12.1.1-x86_64-unknown-linux-musl/doc/rg.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From apt: