You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/pre-install.sh

18 lines
447 B
Bash

[ -d vim ] || mkdir -p vim/colors
[ -d tmux ] || mkdir -p tmux/plugins
OMZDIR="$HOME/.oh-my-zsh"
if [ ! -d "$OMZDIR" ]; then
echo "Installing oh-my-zsh"
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
else
echo "Consider updating oh-my-zsh using: omz update"
fi
if [ ! $0 = "-zsh" ]; then
echo "Changing default shell to zsh"
chsh -s /bin/zsh
else
echo "zsh already enabled"
fi