Populate repo with initial version
This commit is contained in:
17
direnvrc
Normal file
17
direnvrc
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- mode: sh -*-
|
||||
|
||||
cache() {
|
||||
|
||||
local cacheDir="${XDG_CACHE_HOME:-$HOME/.cache}/direnv-cache"
|
||||
mkdir -p "$cacheDir"
|
||||
local cacheFile
|
||||
cacheFile="${cacheDir}/$(pwd | sha1sum | tr -d ' -')"
|
||||
cat - > "${cacheFile}.recipe"
|
||||
if [[ -e "$cacheFile" ]]; then
|
||||
echo "Using cached environment from $cacheFile"
|
||||
. $cacheFile
|
||||
else
|
||||
echo "Environment not cached"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user