Added fzf to the updater script

This commit is contained in:
Christoffer Martinsson 2023-07-10 00:33:50 +02:00
parent 2fd28a4aaa
commit 72ac5f6192

View File

@ -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'