diff --git a/scripts/fakehome b/scripts/fakehome new file mode 100755 index 0000000..d363de6 --- /dev/null +++ b/scripts/fakehome @@ -0,0 +1,14 @@ +#!/usr/bin/env fish + +function clean_temp --on-process %self + echo 'deleting' $FAKEHOME'...' + rm -rf $FAKEHOME +end + +set -x FAKEHOME (mktemp -d) +set -x HOME $FAKEHOME +set -x XDG_CONFIG_HOME $HOME/config +set -x XDG_DATA_HOME $HOME/data +set -x XDG_CACHE_HOME $HOME/cache +cd $HOME +fish