Update install & add starship/.bashrc.local configs

This commit is contained in:
2022-08-05 16:01:08 -05:00
parent 9e52b94bdf
commit 38c42756b1
4 changed files with 119 additions and 10 deletions

View File

@ -6,8 +6,8 @@
########## Variables
dir=~/dotfiles # dotfiles directory
olddir=~/dotfiles_old # old dotfiles backup directory
dir=$(basename $0) # dotfiles directory
olddir=$(basename $0)_old # old dotfiles backup directory
files=".tmux.conf .tmux.conf.local .vimrc .vim .tcshrc .bashrc .inputrc .git_completion" # list of files/folders to symlink in homedir
##########
@ -29,3 +29,14 @@ for file in $files; do
echo "Creating symlink to $file in home directory."
ln -s $dir/$file ~/$file > /dev/null 2>&1
done
# link Starship config to ~/.config/ if exists
if [ -f ~/.config ]; then
ln -s ./starship.toml ~/.config/starship.toml
fi
# copy example bashrc.local if one doesn't exist yet
if [ ! -f ~/.bashrc.local ]; then
ln -s .bashrc.local ~/.bashrc.local
fi