mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-09 07:17:14 +08:00
omf install: Don't refresh when nothing installed
This commit is contained in:
parent
e234aab3c6
commit
7ccdada8c6
|
@ -79,10 +79,12 @@ function omf -d "Oh My Fish"
|
||||||
omf.bundle.install
|
omf.bundle.install
|
||||||
else
|
else
|
||||||
for package in $argv[2..-1]
|
for package in $argv[2..-1]
|
||||||
omf.install $package
|
if omf.install $package
|
||||||
|
set refresh
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
refresh
|
set -q refresh; and refresh
|
||||||
end
|
end
|
||||||
|
|
||||||
case "l" "ls" "list"
|
case "l" "ls" "list"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user