mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 09:41:40 +08:00
Fix #303
This commit is contained in:
parent
4fab28534f
commit
9b3a2586f2
|
@ -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
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
function omf.bundle.remove
|
||||
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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user