Last active
September 25, 2023 10:35
-
-
Save mherkazandjian/a506af9858bbe44a9fbf5c21c9b15682 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
################################################## | |
# usage: | |
# $ ./install_fzf_rg.sh | |
# execute the script without saving it to disk: | |
# | |
# $ curl -s -L https://gist.github.com/mherkazandjian/a506af9858bbe44a9fbf5c21c9b15682/raw/install_fzf_rg.sh | bash -s | |
################################################## | |
#!/bin/bash | |
mkdir ~/.apps | |
# install ripgrep | |
curl -s -L https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz | tar -xvz -C ~/.apps/ | |
## .. todo:: check that the path is added to the bashrc | |
## or even check the xdg config file | |
echo 'export PATH=$HOME/.apps/ripgrep-13.0.0-x86_64-unknown-linux-musl:$PATH' >> ~/.bashrc | |
rg --version | |
# install fd | |
curl -s -L https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-x86_64-unknown-linux-musl.tar.gz | tar -xvz -C ~/.apps/ | |
## .. todo:: check that the path is added to the bashrc | |
## or even check the xdg config file | |
echo 'export PATH=$HOME/.apps/fd-v8.7.0-x86_64-unknown-linux-musl:$PATH' >> ~/.bashrc | |
# install fzf | |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.apps/fzf | |
~/.apps/fzf/install # answer yes in the install prompt | |
fzf --version | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment