23 lines
455 B
Bash
Executable file
23 lines
455 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "[ZSH]"
|
|
|
|
if [ ! -d ~/.oh-my-zsh ]; then
|
|
# https://github.com/robbyrussell/oh-my-zsh
|
|
echo "\n* Installing oh-my-zsh"
|
|
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
|
|
|
|
# Set new shell
|
|
echo "\n* Changing shell"
|
|
chsh -s /bin/zsh
|
|
fi
|
|
|
|
# Create links
|
|
echo "\n* Setting up symlinks"
|
|
src=$(cd "$(dirname "$0")"; pwd)
|
|
|
|
ln -sf $src/zshrc ~/.zshrc
|
|
ln -sf $src/zsh ~/.zsh
|
|
|
|
echo "\nDone!"
|