removed windows and linux split subdir

This commit is contained in:
Luka Jankovic 2026-02-03 23:43:22 +01:00
parent 83dda10fa8
commit 065b982734
280 changed files with 9053 additions and 426 deletions

View file

@ -0,0 +1,29 @@
#!/bin/zsh
### Get the default cache directory per OS
#function __antidote_get_cachedir {
emulate -L zsh; setopt local_options $_adote_funcopts
local result
if [[ "${OSTYPE}" == darwin* ]]; then
result=$HOME/Library/Caches
elif [[ "${OSTYPE}" == (cygwin|msys)* ]]; then
result=${LOCALAPPDATA:-$LocalAppData}
if type cygpath > /dev/null; then
result=$(cygpath "$result")
fi
elif [[ -n "$XDG_CACHE_HOME" ]]; then
result=$XDG_CACHE_HOME
else
result=$HOME/.cache
fi
if [[ -n "$1" ]]; then
if [[ $result == *\\* ]] && [[ $result != */* ]]; then
result+="\\$1"
else
result+="/$1"
fi
fi
print -r -- $result
#}