adjust cache directory

This commit is contained in:
Sebastian Tramp 2011-09-27 23:32:35 +02:00
parent 16fef9ffe9
commit a83cc092a5

View file

@ -7,24 +7,14 @@ _rdfshInputFile () {
_rdfshResourceHistory () { _rdfshResourceHistory () {
typeset -a rhistory typeset -a rhistory
local hresource local resource
tail ~/.resource_history 2> /dev/null | sed 's/:/\\\\:/' | while read hresource tail $HOME/.cache/rdf.sh/resource.history 2> /dev/null | tac | sed 's/:/\\\\:/' | while read resource
do do
rhistory+=(${hresource/ # [0-9]#:*}) rhistory+=(${resource/ # [0-9]#:*})
done done
_describe -t rhistory 'resource history' rhistory _describe -t rhistory 'resource history' rhistory
} }
_rdfshCatchedResources () {
typeset -a rlist
local cresource
rdf list $words[$CURRENT] | sed 's/:/\\\\:/' | while read cresource
do
rlist+=(${cresource/ # [0-9]#:*})
done
_describe -t rlist 'catched resource list' rlist
}
_rdf() { _rdf() {
if [ "$CURRENT" -eq "2" ] if [ "$CURRENT" -eq "2" ]
@ -33,7 +23,6 @@ _rdf() {
else else
#_wanted files expl 'RDF Files' _files -g '*.(#i)(rdf|n3|owl|nt|xml|ttl)(.)' #_wanted files expl 'RDF Files' _files -g '*.(#i)(rdf|n3|owl|nt|xml|ttl)(.)'
_alternative 'files:RDF File:_rdfshInputFile' 'rhistory:resource history:_rdfshResourceHistory' _alternative 'files:RDF File:_rdfshInputFile' 'rhistory:resource history:_rdfshResourceHistory'
#_alternative 'files:RDF File:_rdfshInputFile' 'rhistory:resource history:_rdfshResourceHistory' 'rlist:catched resource list:_rdfshCatchedResources'
fi fi
#local cmd expl #local cmd expl