From 92bde3bcde80d3e42e5d7d28c3bbe9c74e4d7df3 Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Tue, 28 Feb 2023 10:07:27 +0100 Subject: [PATCH] feat: install for ubuntu --- install.sh | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 9daaaab..a4ec732 100755 --- a/install.sh +++ b/install.sh @@ -15,9 +15,9 @@ workspace_link() { ln -s $REPO_DIR/$1 $HOME_DIR/$2 || true } -echo "== manjaro packages" if cat /etc/lsb-release | grep Manjaro > /dev/null then + echo "== manjaro packages" sudo pacman -Syu sudo pacman -S \ git \ @@ -27,11 +27,28 @@ then neovim \ zsh \ tmux \ - starship \ nodejs \ ripgrep \ - fd \ typos-bin +elif cat /etc/os-release | grep "Ubuntu" > /dev/null +then + echo "== ubuntu packages" + sudo apt update + sudo apt install -y \ + git \ + bat \ + vim \ + neovim \ + zsh \ + tmux \ + nodejs \ + ripgrep \ + snapd \ + cargo + sudo snap install \ + difftastic \ + starship \ + cargo install typos-cli fi echo "== zplug" @@ -43,6 +60,9 @@ then sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --yes fi +echo "== Switching shell to ZSH" +sudo chsh $USER --shell $(which zsh) + echo "== Copying configuration files..." # GIT workspace_backup .gitconfig