mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +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.
9 lines
229 B
Fish
9 lines
229 B
Fish
function omf.list_themes
|
|
set -l seen ""
|
|
for theme in (basename $OMF_PATH/db/themes/*) \
|
|
(basename {$OMF_PATH,$OMF_CONFIG}/themes/*)
|
|
contains $theme $seen; or echo $theme
|
|
set seen $seen $theme
|
|
end
|
|
end
|