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:
parent
53ee2518bb
commit
f06f26e83c
1 changed files with 8 additions and 2 deletions
10
install.zsh
10
install.zsh
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue