#!/usr/bin/env bash set -e git config core.autocrlf false APT_CMD="apt" if [ "$(id -u)" -ne 0 ]; then APT_CMD="sudo apt" fi echo echo "[+] Updating System Packages..." echo $APT_CMD update -qq echo echo "[+] Installing Dependencies..." echo $APT_CMD install -yqq \ zsh \ curl \ exa \ direnv \ bat \ btop \ stow \ tmux \ dos2unix \ python3 \ python3-yaml if [ ! -d "$HOME/.oh-my-zsh" ]; then echo echo "[+] Installing Oh My Zsh..." echo sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" fi if [ -f "$HOME/.zshrc" ] && [ ! -L "$HOME/.zshrc" ]; then rm "$HOME/.zshrc" fi if [ -f "./.git/hooks/post-merge" ]; then rm "./.git/hooks/post-merge" fi ln -s ./scripts/post-merge .git/hooks/post-merge ./scripts/setup