mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 17:57:38 +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
|
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"
|
set -l record "$type $name_or_url"
|
||||||
|
|
||||||
if test -f $bundle
|
if test -f $bundle
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
function omf.bundle.remove
|
function omf.bundle.remove
|
||||||
|
if test -h $OMF_CONFIG/bundle
|
||||||
|
set bundle (readlink $OMF_CONFIG/bundle)
|
||||||
|
else
|
||||||
set bundle $OMF_CONFIG/bundle
|
set bundle $OMF_CONFIG/bundle
|
||||||
|
end
|
||||||
|
|
||||||
if test -f $bundle
|
if test -f $bundle
|
||||||
set type $argv[1]
|
set type $argv[1]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user