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