Skip to content

Instantly share code, notes, and snippets.

@ramhiser
Created January 5, 2012 01:08
Show Gist options
  • Save ramhiser/1563158 to your computer and use it in GitHub Desktop.
Save ramhiser/1563158 to your computer and use it in GitHub Desktop.
My .bash_profile File
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Creates symbolic links from various subfolders in ~/Dropbox/ to ~/
# This allows for a more consistent structure across my many computers.
if [ ! -L ~/scripts ]; then
ln -s ~/Dropbox/scripts/ ~/scripts
fi
if [ ! -L ~/Rpackages ]; then
ln -s ~/Dropbox/Rpackages/ ~/Rpackages
fi
if [ ! -L ~/projects ]; then
ln -s ~/Dropbox/projects/ ~/projects
fi
if [ ! -L ~/papers ]; then
ln -s ~/Dropbox/papers/ ~/papers
fi
if [ ! -L ~/blog ]; then
ln -s ~/Dropbox/blog/ ~/blog
fi
if [ ! -L ~/todo ]; then
ln -s ~/Dropbox/todo/ ~/todo
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment