zsh/install.sh

19 lines
619 B
Bash
Raw Normal View History

2020-09-03 15:36:46 +00:00
#!/bin/sh
git clone https://github.com/tarjoilija/zgen.git "$HOME/.config/zsh/zgen"
2020-09-03 15:58:45 +00:00
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"
2020-09-03 15:36:46 +00:00
if [ -e "$HOME/.zshrc" ] ; then
mv "$HOME/.zshrc" "$HOME/.zshrc-original-$(date +%s)"
fi
ln -s "$HOME/.config/zsh/zshrc" "$HOME/.zshrc"
2020-09-03 16:22:56 +00:00
curl -fsSL https://starship.rs/install.sh --output /tmp/install.sh
2020-09-03 16:35:31 +00:00
mkdir "$HOME/.config/zsh/starship"
2020-09-03 16:33:14 +00:00
bash /tmp/install.sh --yes --bin-dir "$HOME/.config/zsh/starship"
2020-09-03 16:36:08 +00:00
rm /tmp/install.sh