1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-06-07 13:15:06 +00:00

add update arg to install.sh

This commit is contained in:
mlunax 2020-01-25 01:57:35 +01:00
parent c82d6264c2
commit 6bd60e79cc
No known key found for this signature in database
GPG key ID: 364432466E2171B9

8
install.zsh Normal file → Executable file
View file

@ -1,5 +1,13 @@
#!/usr/bin/env zsh
# env, because some OSes keep zsh in /bin (I'm looking at you, Alpine)
if [[ "$1" == "update" ]]; then
cp .zshrc $HOME
if [ -d "${HOME}/.zsh" ]; then
rm -r $HOME/.zsh
fi
cp -r .zsh $HOME
exit
fi
cp .zshrc $HOME
if [ ! -d "${HOME}/.oh-my-zsh" ]; then
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"