dotfiles/bin/pre-install.sh
2023-01-15 19:10:34 -05:00

18 lines
389 B
Bash
Executable File

# changing to zsh
exists=$(cat /etc/shells | grep zsh)
if [[ -z "$exists" ]] ; then
echo "Please install zsh!"
exit 1
fi
if [[ "$SHELL" != "/bin/zsh" ]] ; then
chsh -s /bin/zsh
fi
if [ ! -e "$HOME/.oh-my-zsh/oh-my-zsh.sh" ]; then
echo "Installing oh-my-zsh"
/bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi