diff --git a/.bash_aliases b/bash/.bash_aliases similarity index 100% rename from .bash_aliases rename to bash/.bash_aliases diff --git a/.bashrc b/bash/.bashrc similarity index 100% rename from .bashrc rename to bash/.bashrc diff --git a/.gitconfig b/git/.gitconfig similarity index 100% rename from .gitconfig rename to git/.gitconfig diff --git a/install.sh b/install.sh deleted file mode 100755 index 2ac260d..0000000 --- a/install.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -# This script loops through files in this repository, creating symlinks in your -# home directory targeting here. It will prompt you to backup regular files and -# replace broken symlinks but will ignore good symlinks regardless of their -# target. - -DOTFILES="$(pwd)/.*[a-z]" - -for FILE in $DOTFILES; do - BASEFILE=$(basename $FILE) - NEWLINK=0 - - # Exclude the repo's .git folder - if [ "$BASEFILE" != ".git" ]; then - - # If basefile is a link - if [ -L ~/$BASEFILE ]; then - # If basefile is not a file, and therefore is a broken symlink - if [ ! -f ~/$BASEFILE ]; then - read -p "Press [ENTER] to replace broken symlink ~/$BASEFILE." - rm ~/$BASEFILE - NEWLINK=1 - else - echo "~/$BASEFILE is already linked." - fi - # If basefile is a regular file or directory - elif [ -f ~/$BASEFILE ] || [ -d ~/$BASEFILE ]; then - DATE=$(date '+%Y%m%d%H%M%S') - read -p "Press [ENTER] to move ~/$BASEFILE to ~/$BASEFILE-$DATE." - mv ~/$BASEFILE ~/$BASEFILE-$DATE - NEWLINK=1 - else - echo "Nothing in location ~/$BASEFILE" - NEWLINK=1 - fi - - # Create a new symlink - if [ $NEWLINK -eq 1 ]; then - echo "Creating new link to $(pwd)/$BASEFILE from" ~ - ln -s $(pwd)/$BASEFILE ~/$BASEFILE - fi - - fi -done - -. ~/.bashrc diff --git a/.vim/colors/monokai.vim b/vim/.vim/colors/monokai.vim similarity index 100% rename from .vim/colors/monokai.vim rename to vim/.vim/colors/monokai.vim diff --git a/.vimrc b/vim/.vimrc similarity index 100% rename from .vimrc rename to vim/.vimrc