24 lines
464 B
Bash
24 lines
464 B
Bash
#!/bin/sh
|
|
|
|
# check if the files exist, and remove.
|
|
|
|
# get path where all files live.
|
|
repo_path=`dirname $(readlink -f $0)`
|
|
|
|
if [ -f ~/.zshrc ]; then
|
|
rm -f ~/.zshrc
|
|
fi
|
|
if [ -f ~/.p10k.zsh ]; then
|
|
rm -f ~/.p10k.zsh
|
|
fi
|
|
if [ -f ~/.aliases ]; then
|
|
rm -f ~/.aliases
|
|
fi
|
|
if [ -f ~/.vimrc ]; then
|
|
rm -f ~/.vimrc
|
|
fi
|
|
|
|
ln -s $repo_path/.zshrc ~/.zshrc
|
|
ln -s $repo_path/.p10k.zsh ~/.p10k.zsh
|
|
ln -s $repo_path/.aliases ~/.aliases
|
|
ln -s $repo_path/.vimrc ~/.vimrc |