Commit 14f5e730 authored by Austin Daniel Ye's avatar Austin Daniel Ye
Browse files

Added symlinks to home directory

parent 97c20b0c
#!/bin/bash
#This script creates symlinks from the home directory to desired dotfiles in dotfiles directory
dir=~/ditfiles
olddir=~/dotfiles_old
files=".bashrc .vimrc"
echo "Creating $olddir for backup of any existing dotfiles in ~"
mkdir -p $olddir
echo "...done"
echo "Changing to the $dir directory"
cd $dir
echo"...done"
for file in $files; do
echo "Moving any existing dotfiles from ~ to $olddir"
mv ~/.$file ~/dotfiles_old/
echo "Creating symlink to $file in home directory."
ln -s $dir/$file ~/.$file
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment