1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-19 08:45:36 +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) plugins=(git docker virtualenv)
export EDITOR=nano export EDITOR=vim
export JAVA_HOME= export JAVA_HOME=
for f in $OTHER/*.zsh; do for f in $OTHER/*.zsh; do

View file

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