zsh/install.sh

18 lines
586 B
Bash
Executable File

#!/bin/sh
git clone https://github.com/tarjoilija/zgen.git "$HOME/.config/zsh/zgen"
if [ -e "$HOME/.config/starship" ] ; then
mv "$HOME/.config/starship" "$HOME/.config/starship-original-$(date +%s)"
fi
git clone https://git.rayelliott.dev/dots/starship-prompt.git "$HOME/.config/starship"
if [ -e "$HOME/.zshrc" ] ; then
mv "$HOME/.zshrc" "$HOME/.zshrc-original-$(date +%s)"
fi
ln -s "$HOME/.config/zsh/zshrc" "$HOME/.zshrc"
curl -fsSL https://starship.rs/install.sh --output /tmp/install.sh
bash /tmp/install.sh --yes --bin-dir "$HOME/.config/zsh/starship"
# rm /tmp/install.sh