mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-06-07 21:21:11 +00:00
add update arg to install.sh
This commit is contained in:
parent
c82d6264c2
commit
6bd60e79cc
1 changed files with 8 additions and 0 deletions
8
install.zsh
Normal file → Executable file
8
install.zsh
Normal file → Executable 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)"
|
||||
|
|
Loading…
Add table
Reference in a new issue