24 lines
491 B
Bash
Executable File
24 lines
491 B
Bash
Executable File
#!/bin/bash
|
|
|
|
here="$(dirname $0)"
|
|
|
|
function install_file()
|
|
{
|
|
source="${here}/$1"
|
|
dest="${HOME}/$2"
|
|
if [ -e "$dest" ]; then
|
|
echo "Skipping $1"
|
|
else
|
|
echo "Installing $1"
|
|
mkdir -p $(dirname "$dest")
|
|
ln -s "$source" "$dest"
|
|
fi
|
|
}
|
|
|
|
install_file bash_aliases .bash_aliases
|
|
install_file vimrc .vimrc
|
|
install_file inputrc .inputrc
|
|
install_file screenrc .screenrc
|
|
install_file ir_black.vim .vim/colors/ir_black.vim
|
|
install_file gitignore .gitignore
|