dotfiles/setup-zsh.sh

11 lines
469 B
Bash
Executable file

#!/bin/bash
if [ ! $HOME/.oh-my-zsh ] sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
if [ ! $HOME/.zplug ] curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
zplug install
# Start zsh
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME restore --staged $HOME/.zshrc
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME restore $HOME/.zshrc
zsh