add new scripts

This commit is contained in:
Michele Guerini Rocco 2019-03-14 20:40:05 +01:00
parent bcb8b9f457
commit 3ca48afdd2
Signed by: rnhmjoj
GPG Key ID: 91BE884FBA4B591A

14
scripts/fakehome Executable file
View File

@ -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