Files
linux-config/setup_symlinks.sh
T
2023-03-28 21:12:12 -04:00

24 lines
464 B
Bash
Executable File

#!/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