Skip to content

Commit bd657f2

Browse files
committed
Update fzf install and install treesitter binary
1 parent bd1e65b commit bd657f2

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.config/yadm/bootstrap##os.Linux

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ fi
3535

3636
# https://github.com/junegunn/fzf
3737
if ! command -v fzf &>/dev/null; then
38-
gh repo clone junegunn/fzf "${HOME}/.fzf" -- --depth 1
39-
eval "${HOME}/.fzf/install --key-bindings --completion --no-zsh --no-fish --no-update-rc"
38+
gh release download --clobber --output /tmp/fzf.tar.gz --repo junegunn/fzf --pattern "*-linux_amd64.tar.gz"
39+
tar xf /tmp/fzf.tar.gz -C /tmp/
40+
sudo install /tmp/fzf /usr/local/bin
4041
fi
4142

4243
# https://github.com/jesseduffield/lazygit
@@ -76,6 +77,12 @@ if ! command -v ctags &>/dev/null; then
7677
sudo make install
7778
fi
7879

80+
if ! command -v treesitter &>/dev/null; then
81+
gh release download --clobber --output /tmp/tree-sitter.tar.gz --repo tree-sitter/tree-sitter --pattern "tree-sitter-linux-x64.gz"
82+
tar -xzf /tmp/tree-sitter.tar.gz -C /tmp/
83+
sudo install /tmp/tree-sitter /usr/local/bin/tree-sitter
84+
fi
85+
7986
if command -v zsh &>/dev/null; then
8087
# Set zsh as the default shell
8188
sudo chsh -s /bin/zsh "$(whoami)"

0 commit comments

Comments
 (0)