add new scripts
This commit is contained in:
parent
bcb8b9f457
commit
3ca48afdd2
14
scripts/fakehome
Executable file
14
scripts/fakehome
Executable 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
|
Loading…
Reference in New Issue
Block a user