mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-16 05:32:44 +08:00
11 lines
295 B
Fish
11 lines
295 B
Fish
function omf.search.theme -a item -d "Search db/theme for the specified item"
|
|
|
|
set -l available_theme (omf.packages.list --database --theme)
|
|
echo (omf::under)"Themes"(omf::off)
|
|
|
|
set -l regex "([A-Za-z0-9-]*)($item)([A-Za-z0-9-]*)"
|
|
|
|
echo $available_theme | egrep -io $regex | column
|
|
|
|
end
|