mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-09 13:10:40 +00:00
20ed43983b
Having a clear namespace `omf.` improves the readability of the code as we clarify what is the function name and what is the namespace.
7 lines
203 B
Fish
7 lines
203 B
Fish
# List all custom packages and packages installed from the registry.
|
|
function omf.list_local_packages
|
|
for item in (basename {$OMF_PATH,$OMF_CONFIG}/pkg/*)
|
|
test $item = omf; or echo $item
|
|
end
|
|
end
|