create backup and force creation of symbolic link
This commit is contained in:
parent
b75bfee984
commit
0518d20daa
|
@ -13,14 +13,9 @@ fi
|
||||||
mkdir -p /home/"$_user"/.config
|
mkdir -p /home/"$_user"/.config
|
||||||
cd /home/"$_user"
|
cd /home/"$_user"
|
||||||
rm -Rf .config/zsh
|
rm -Rf .config/zsh
|
||||||
if [ -h .zshrc ] ; then
|
|
||||||
rm .zshrc
|
|
||||||
elif [ -f .zshrc ] ; then
|
|
||||||
mv .zshrc .zshrc.backup
|
|
||||||
fi
|
|
||||||
su ray -c 'git clone https://git.rayelliott.dev/dots/zsh.git .config/zsh'
|
su ray -c 'git clone https://git.rayelliott.dev/dots/zsh.git .config/zsh'
|
||||||
su ray -c 'git clone https://github.com/tarjoilija/zgen.git .config/zsh/zgen'
|
su ray -c 'git clone https://github.com/tarjoilija/zgen.git .config/zsh/zgen'
|
||||||
su ray -c 'ln -s .config/zsh/zshrc .zshrc'
|
su ray -c 'ln -bfs .config/zsh/zshrc .zshrc'
|
||||||
|
|
||||||
# set interactive shell
|
# set interactive shell
|
||||||
_zsh=$(command -v zsh)
|
_zsh=$(command -v zsh)
|
||||||
|
|
Reference in New Issue