David Blume's GitList
Repositories
dotfiles.git
Code
Commits
Branches
Tags
Search
Tree:
dc941bb
Branches
Tags
main
pathogen
remove-vim-airline
vim-airline-disabled
vim-powerline
dotfiles.git
setup.sh
Add descriptions of the vim plugins.
David Blume
commited
dc941bb
at 2015-11-28 08:57:56
setup.sh
Blame
History
Raw
#!/bin/bash set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/ declare -r backup_dir=$HOME/backup_of_orig_dotfiles_`date "+%Y-%m-%d"` if [ ! -d $backup_dir ]; then mkdir -p $backup_dir fi # Move original dot files to backup if [ -e $HOME/.bashrc ]; then mv $HOME/.bashrc $backup_dir fi if [ -e $HOME/.bash_profile ]; then mv $HOME/.bash_profile $backup_dir fi if [ -e $HOME/.gitconfig ]; then mv $HOME/.gitconfig $backup_dir fi if [ -d $HOME/.vim ]; then mv $HOME/.vim $backup_dir fi echo Note: Your old dotfiles are backed up to $backup_dir # Move new dot files in. # If you cloned the repo, consider making symbolic links instead, # to more easily keep this home directory current by pulling updates. cp .bashrc $HOME cp .bash_profile $HOME cp .gitconfig $HOME cp -r .vim $HOME # Make a directory for vim undo if [ ! -d $HOME/.vim_undo ]; then mkdir -p $HOME/.vim_undo fi # Tell David what's left. echo Done. Check http://config.dlma.com for more.