mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-12 16:45:00 +08:00
commit
a300d1ba65
|
@ -1,5 +1,10 @@
|
|||
function omf.bundle.add -a type name_or_url
|
||||
set -l bundle $OMF_CONFIG/bundle
|
||||
|
||||
if test -L $OMF_CONFIG/bundle
|
||||
set bundle (readlink $OMF_CONFIG/bundle)
|
||||
end
|
||||
|
||||
set -l record "$type $name_or_url"
|
||||
|
||||
if test -f $bundle
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
function omf.bundle.remove
|
||||
set bundle $OMF_CONFIG/bundle
|
||||
set -l bundle $OMF_CONFIG/bundle
|
||||
|
||||
if test -L $OMF_CONFIG/bundle
|
||||
set bundle (readlink $OMF_CONFIG/bundle)
|
||||
end
|
||||
|
||||
if test -f $bundle
|
||||
set type $argv[1]
|
||||
|
|
Loading…
Reference in New Issue
Block a user