oh-my-fish/pkg/omf/init.fish
Derek Stavis 49dda5c2f7 Reorganize omf plugin structure
This updates omf plugin to new architecture, moving
functions to `functions` directory. It also revamps the
separation of concerns between CLI and underlying
implementations, organizing them into directories,
whose are autoloaded in plugin startup.
2016-01-09 18:59:54 -02:00

29 lines
624 B
Fish

function init -a path --on-event init_omf
set -g OMF_MISSING_ARG 1
set -g OMF_UNKNOWN_OPT 2
set -g OMF_INVALID_ARG 3
set -g OMF_UNKNOWN_ERR 4
function omf::em
set_color $fish_color_match ^/dev/null; or set_color cyan
end
function omf::dim
set_color $fish_color_autosuggestion ^/dev/null; or set_color 555
end
function omf::err
set_color $fish_color_error ^/dev/null; or set_color red --bold
end
function omf::under
set_color --underline
end
function omf::off
set_color normal
end
autoload $path/functions/{compat,core,packages,themes,bundle,util,repo,cli}
end