Last active
January 25, 2016 13:57
-
-
Save kvaps/7b43630befbc8b10dd5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z $OLD_HOME ]; then | |
export OLD_HOME=$HOME | |
export HOME=/tmp/$USER | |
mkdir -p $HOME | |
find $OLD_HOME -type f -exec sh -c ' | |
path=`echo "$@" | sed "s|$OLD_HOME||g"` | |
mkdir -p `dirname ${HOME}${path}` | |
ln -s ${OLD_HOME}${path} ${HOME}${path}' _ {} \; | |
fi | |
cd $HOME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment