Rename stuff to prepare for gnu stow.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user