PageRenderTime 317ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/setup_220_ripgrep.sh

https://gitlab.com/kostaz/env
Shell | 15 lines | 11 code | 3 blank | 1 comment | 0 complexity | fa8696c15327bb863c0676448b096620 MD5 | raw file
  1. #!/bin/bash
  2. sudo apt-get install -y jq
  3. REPO="https://github.com/BurntSushi/ripgrep/releases/download/"
  4. RG_LATEST=$(curl -sSL "https://api.github.com/repos/BurntSushi/ripgrep/releases/latest" | jq --raw-output .tag_name)
  5. RELEASE="${RG_LATEST}/ripgrep-${RG_LATEST}-x86_64-unknown-linux-musl.tar.gz"
  6. TMPDIR=$(mktemp -d)
  7. cd $TMPDIR
  8. wget -O - ${REPO}${RELEASE} | tar zxf - --strip-component=1
  9. sudo mv rg /usr/bin/
  10. sudo mv rg.1 /usr/share/man/man1/
  11. sudo mv complete/rg.bash-completion /usr/share/bash-completion/completions/rg
  12. sudo mandb