unixconf/unixconf.sh

25 lines
699 B
Bash
Executable File

#!/bin/sh
musthaves="zsh wget git vim unzip"
if [ ! -z ${1+x} ] && [ "$1" == "skip-install" ]; then
musthaves=""
fi
for musthave in $musthaves; do
which "$musthave" >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
echo "You should install ${musthave}."
echo "On Ubuntu: apt-get install zsh wget git vim-nox unzip"
exit
fi
done
# ZSH setup
SHELL=zsh sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
echo "Setting ZSH as default."
echo "exec zsh" >> "$HOME/.bash_profile"
wget https://gitlab.cpy.re/florian/unixconf/raw/master/config/zshrc -O ~/.zshrc
wget https://gitlab.cpy.re/florian/unixconf/raw/master/config/vimrc -O ~/.vimrc