#!/bin/bash set -e if [[ "$OSTYPE" == "linux"* ]]; then sudo apt update && sudo apt install -y git elif [[ "$OSTYPE" == "darwin"* ]]; then xcode-select -p &>/dev/null || xcode-select --install fi git clone https://github.com/nickmahdavi/.DOTFILES.git cd .DOTFILES bash bin/install zsh_path="$(command -v zsh)" if [[ -n "$zsh_path" ]]; then grep -qxF "$zsh_path" /etc/shells || echo "$zsh_path" | sudo tee -a /etc/shells sudo chsh -s "$zsh_path" "$(whoami)" exec $zsh_path --login fi # :)