From 4f45d3b02f77de2eae0bb79a2ebbc69b12679a2b Mon Sep 17 00:00:00 2001 From: Dakedres Date: Sat, 29 Jun 2024 18:14:38 -0600 Subject: [PATCH] Little baby install scripts --- install-zsh.sh | 18 ++++++++++++++++++ install.sh | 4 ++++ 2 files changed, 22 insertions(+) create mode 100755 install-zsh.sh create mode 100755 install.sh diff --git a/install-zsh.sh b/install-zsh.sh new file mode 100755 index 0000000..a689574 --- /dev/null +++ b/install-zsh.sh @@ -0,0 +1,18 @@ +#!/bin/env bash + +set -e + +sudo apt install zsh + +if [[ -z "$ZSH" ]]; then + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +fi + +if [[ ! -r "$HOME/.zshrc" ]]; then + cp ./config/zshrc "$HOME/.zshrc" +else + echo ".zshrc exists. Refusing to overwrite" +fi + +[[ -r ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ]] || git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions +[[ -r ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ]] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..78efd84 --- /dev/null +++ b/install.sh @@ -0,0 +1,4 @@ +sudo apt install \ + socat \ + sqlite3 \ + suckless-tools # wmname primarily