From 72ac5f6192693b5775811373fa7fe551dc4aa042 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 10 Jul 2023 00:33:50 +0200 Subject: [PATCH] Added fzf to the updater script --- update.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 973cefe..389f1e9 100755 --- a/update.sh +++ b/update.sh @@ -1,14 +1,23 @@ #!/bin/bash set -e -# Install system packages +# Ubuntu 20.04 workaround printf -- '\033[33m Remove neovim if already installed\n\033[37m' sudo apt -y purge --auto-remove neovim + +# Install system packages printf -- '\033[33m Installing system packages\n\033[37m' sudo apt update && sudo apt -y upgrade sudo apt -y install ninja-build gettext cmake unzip curl python3 python3-pip python3-venv \ build-essential libssl-dev libffi-dev python3-dev file tmux libudev-dev pkg-config +# Install fzf +printf -- '\033[33m Installing fzf\n\033[37m' +rm -rf ~/.fzf +git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf +~/.fzf/install +source ~/.fzf.bash + # Install VirtualHere client printf -- '\033[33m Installing VirtualHere client\n\033[37m' cd ~ @@ -62,7 +71,8 @@ cargo install tree-sitter-cli # Install ripgrep printf -- '\033[33m Installing ripgrep\n\033[37m' -sudo apt install -y ripgrep +cargo install ripgrep +# sudo apt install -y ripgrep # Install fd printf -- '\033[33m Installing fd\n\033[37m' @@ -182,6 +192,7 @@ printf -- '\033[33m Adding path to bashrc\n\033[37m' echo 'PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"' >> ~/.bashrc echo 'alias vi="nvim"' >> ~/.bashrc echo 'alias vim="nvim"' >> ~/.bashrc +echo 'source ~/.fzf.bash"' >> ~/.bashrc # Add tmux/nvim autostart to bashrc printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'