30 lines
688 B
Bash
Executable file
30 lines
688 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source ~/.dotfiles/zsh/functions
|
|
|
|
if [ ! -d ~/.oh-my-zsh ]; then
|
|
# Try to install zsh
|
|
pkg-install zsh
|
|
|
|
# https://github.com/robbyrussell/oh-my-zsh
|
|
echo-g "==> ZSH: Installing oh-my-zsh"
|
|
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
|
|
|
|
# Set new shell
|
|
echo-g "==> ZSH: Changing shell"
|
|
chsh -s $(which zsh)
|
|
else
|
|
echo-g "==> ZSH: Updating"
|
|
cd ~/.oh-my-zsh
|
|
git pull
|
|
fi
|
|
|
|
# Create links
|
|
echo-g "==> ZSH: Setting up symlinks"
|
|
do_link ~/.dotfiles/zsh ~/.zsh
|
|
do_link ~/.dotfiles/zshrc ~/.zshrc
|
|
do_link ~/.dotfiles/zshenv ~/.zshenv
|
|
do_link ~/.dotfiles/bashrc ~/.bashrc
|
|
|
|
echo-g "==> ZSH: DONE!"
|