fisher/functions/__fisher_deps_install.fish
2016-02-20 09:57:51 +09:00

10 lines
303 B
Fish

function __fisher_deps_install -a path
debug "Install dependencies in '%s'" "$path"
for file in $path/{fishfile,bundle}
if test -s $file
fisher_install < $file | sed -En 's/^.+([0-9]+) plugin\/s.*/\1/p'
end
end | awk '{ n = n + $0 } END { print n ? n : 0 }'
end