#!/bin/sh set -e if command -v apt-get ; then apt-get -y install zsh git else echo "Error - no package installer found." exit 1 fi # clone configuration mkdir -p /home/"$_user"/.config cd /home/"$_user" rm -Rf .config/zsh su ray -c 'git clone https://git.rayelliott.dev/dots/zsh.git .config/zsh' su ray -c 'git clone https://github.com/tarjoilija/zgen.git .config/zsh/zgen' su ray -c 'ln -bfs .config/zsh/zshrc .zshrc' # set interactive shell _zsh=$(command -v zsh) if [ -f "$_zsh" ] ; then chsh ray -s "$_zsh" fi