1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-18 16:26:50 +00:00

update install.sh

This commit is contained in:
Luna 2020-09-24 01:29:32 +02:00
parent 7aa81029c6
commit 099f2f2e88
No known key found for this signature in database
GPG key ID: 05246084ED6DAD21
2 changed files with 9 additions and 9 deletions

2
.zshrc
View file

@ -9,7 +9,7 @@ source $ZSH/oh-my-zsh.sh
plugins=(git docker virtualenv)
export EDITOR=nano
export EDITOR=vim
export JAVA_HOME=
for f in $OTHER/*.zsh; do

View file

@ -1,13 +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
# 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)"