Skip to content

Instantly share code, notes, and snippets.

@hitode909
Created December 9, 2008 10:17
Show Gist options
  • Save hitode909/33863 to your computer and use it in GitHub Desktop.
Save hitode909/33863 to your computer and use it in GitHub Desktop.
#!/bin/sh
# this script will setup dotfiles in repository to your home directory.
# please fix dotfiles_path before running this script (if needed).
HOME_PATH=~
DOTFILES_PATH=~/archives/dotfiles
mkdir ${HOME_PATH}/.old_dotfiles
for file in bashrc zshrc screenrc set_proxy elisp emacs.el
do
echo "${file}"
mv ${HOME_PATH}/.${file} ${HOME_PATH}/.old_dotfiles/.${file}
ln -s ${DOTFILES_PATH}/${file} ${HOME_PATH}/.${file}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment