24 lines
636 B
Bash
Executable File
24 lines
636 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#===============================================================================
|
|
#
|
|
# FILE: create-symlinks.sh
|
|
# USAGE:
|
|
# DESCRIPTION:
|
|
# REQUIREMENTS:
|
|
# NOTES:
|
|
# AUTHOR: C Hawley
|
|
# CREATED:
|
|
#
|
|
#===============================================================================
|
|
|
|
# If regular files exists, remove them
|
|
[[ -f $HOME/.vimrc ]] && rm $HOME/.vimrc
|
|
[[ -d $HOME/.vim ]] && rm $HOME/.vim
|
|
|
|
# If symlinks exist, unlink them
|
|
[[ -L $HOME/.vimrc ]] && unlink $HOME/.vimrc
|
|
[[ -L $HOME/.vim ]] && unlink $HOME/.vim
|
|
|
|
ln -s $PWD/.vimrc $HOME/.vimrc
|
|
ln -s $PWD/.vim $HOME/.vim
|