1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-19 08:45:36 +00:00

feat: add copying to the new files the old env

This commit is contained in:
mlunax 2020-08-04 01:51:43 +02:00
parent 53ee2518bb
commit f06f26e83c
No known key found for this signature in database
GPG key ID: 364432466E2171B9

View file

@ -16,7 +16,13 @@ if [ ! -d "${HOME}/.oh-my-zsh/custom/themes/powerlevel9k" ]; then
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
fi
if [ -d "${HOME}/.zsh" ]; then
rm -r $HOME/.zsh
rm -rf $HOME/.zsh
fi
cp -r .zsh/ $HOME
if [ -n "${devTools}" ]; then
sed -i "s%export devTools=\"\"%export devTools=\"$devTools\"%g" $HOME/.zsh/env.zsh
fi
if [ -n "${GOPATH}" ]; then
sed -i "s%\#export GOPATH=\"\"%export GOPATH=\"$GOPATH\"%g" $HOME/.zsh/env.zsh
fi
cp -r .zsh $HOME
source $HOME/.zshrc