Update install & add starship/.bashrc.local configs
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user