This commit is contained in:
Andrew Rynhard 2016-04-19 00:14:10 -07:00
parent 4fab28534f
commit 9b3a2586f2
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,10 @@
function omf.bundle.add -a type name_or_url
set -l bundle $OMF_CONFIG/bundle
if test -h $OMF_CONFIG/bundle
set bundle (readlink $OMF_CONFIG/bundle)
else
set bundle $OMF_CONFIG/bundle
end
set -l record "$type $name_or_url"
if test -f $bundle

View File

@ -1,5 +1,9 @@
function omf.bundle.remove
set bundle $OMF_CONFIG/bundle
if test -h $OMF_CONFIG/bundle
set bundle (readlink $OMF_CONFIG/bundle)
else
set bundle $OMF_CONFIG/bundle
end
if test -f $bundle
set type $argv[1]