From fd3b25492a42c63baba8b2ee142ca5e680e62da1 Mon Sep 17 00:00:00 2001 From: HOOD Warren Date: Wed, 23 Nov 2022 13:57:18 +0200 Subject: [PATCH] Let setup work on Ubuntu as well --- setup | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/setup b/setup index cadc4fe..4ca18b6 100755 --- a/setup +++ b/setup @@ -2,12 +2,22 @@ echo "Setting up the stuff..." -echo "Updating arch" -sudo pacman -Syyu -sudo pacman -S ripgrep fd neovim make stow tmux +if [[ "$(uname -a)" == *"Ubuntu"* ]] +then + echo "Updating Ubuntu" + sudo apt update && sudo apt upgrade + echo "Installing tools/utils" + sudo apt install ripgrep fd-find make stow tmux +else + echo "Updating Arch" + sudo pacman -Syyu + echo "Installing tools/utils" + sudo pacman -S ripgrep fd neovim make stow tmux +fi # tmux plugin manager and theme +echo "Installing tmux plugin manager... Don't forget to press in a new tmux session later" git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm add_to_file() { @@ -22,5 +32,6 @@ add_to_file() { nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' +# Add aliases to zshrc add_to_file "alias nv='nvim'" "$HOME/.zshrc"