23 lines
617 B
Bash
Executable File
23 lines
617 B
Bash
Executable File
#!/bin/sh
|
|
|
|
gitlink="https://gitlab.cpy.re/florian/unixconf/repository/archive.zip?ref=master"
|
|
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 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"
|