diff --git a/docs/cli/cd.adoc b/docs/cli/cd.adoc index 9a9435a..1b16e35 100644 --- a/docs/cli/cd.adoc +++ b/docs/cli/cd.adoc @@ -1,8 +1,8 @@ -Change directory to root or plugin/theme directory. +Change directory to root or package directory. == USAGE - omf cd Change to Oh My Fish root folder - omf cd | Change to plugin or theme directory by name + omf cd Change to Oh My Fish root folder + omf cd Change to package directory by name == EXAMPLES omf cd diff --git a/docs/cli/new.adoc b/docs/cli/new.adoc index 9ffe528..8e47787 100644 --- a/docs/cli/new.adoc +++ b/docs/cli/new.adoc @@ -1,7 +1,7 @@ Create a new package from a template. == USAGE - omf new (_pkg_ | _theme_) __ Create a new package from a template + omf new (_pkg_ | _theme_) Create a new package from a template == OPTIONS diff --git a/docs/cli/reload.adoc b/docs/cli/reload.adoc index 168c15d..4c45b45 100644 --- a/docs/cli/reload.adoc +++ b/docs/cli/reload.adoc @@ -4,4 +4,4 @@ Reload the current shell. omf reload == DESCRIPTION -Reload Oh My Fish and all plugins by using exec to replace current shell process with a brand new process. This command tries to be as safe as possible, mitigating side-effects caused by exec and preventing the reload in case of background processes. +Reload Oh My Fish and all plugins by using `exec` to replace current shell process with a brand new process. This command tries to be as safe as possible, mitigating side-effects caused by exec and preventing the reload in case of background processes. diff --git a/docs/cli/remove.adoc b/docs/cli/remove.adoc index f377b12..93a5163 100644 --- a/docs/cli/remove.adoc +++ b/docs/cli/remove.adoc @@ -1,7 +1,7 @@ -Remove a theme or package. +Remove a package. == USAGE - omf remove __ | __ Removes a theme or package by name + omf remove == EXAMPLES omf remove brew diff --git a/pkg/omf/completions/omf.fish b/pkg/omf/completions/omf.fish index 910a313..abfe4d4 100644 --- a/pkg/omf/completions/omf.fish +++ b/pkg/omf/completions/omf.fish @@ -27,22 +27,24 @@ end complete -c omf -f -n "__fish_seen_subcommand_from d desc describe" -a (printf "%s " (omf.index.query --type=plugin)) complete -c omf -f -n "__fish_seen_subcommand_from t theme" -a "$installed_themes" complete -c omf -f -n "__fish_seen_subcommand_from channel" -a "stable dev" -complete -c omf -f -n "__fish_seen_subcommand_from help" -a "install theme remove update list describe cd new destroy doctor repositories" +complete -c omf -f -n "__fish_seen_subcommand_from help" -a "cd channel describe destroy doctor help install get list ls new reload remove uninstall repo repositories search theme update version" -complete -c omf -f -a list -n "__fish_use_subcommand" -d "List local packages" -complete -c omf -f -a describe -n "__fish_use_subcommand" -d "Get information about what packages do" -complete -c omf -f -a install -n "__fish_use_subcommand" -d "Install one or more packages" -complete -c omf -f -a theme -n "__fish_use_subcommand" -d "List / Use themes" -complete -c omf -f -a remove -n "__fish_use_subcommand" -d "Remove a theme or package" -complete -c omf -f -a update -n "__fish_use_subcommand" -d "Update Oh My Fish" -complete -c omf -f -a repositories -n "__fish_use_subcommand" -d "Manage package repositories" -complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_assert_args_count 1" -a list -d "List installed repositories" -complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_assert_args_count 1" -a add -d "Add a package repository" -complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_assert_args_count 1" -a remove -d "Remove a package repository" complete -c omf -f -a cd -n "__fish_use_subcommand" -d "Change directory to plugin/theme directory" -complete -c omf -f -a new -n "__fish_use_subcommand" -d "Create a new package from a template" -complete -c omf -f -a search -n "__fish_use_subcommand" -d "Search the database for a theme, package or both" -complete -c omf -f -a help -n "__fish_use_subcommand" -d "Display this help" +complete -c omf -f -a channel -n "__fish_use_subcommand" -d "Gets or changes the update channel" +complete -c omf -f -a describe -n "__fish_use_subcommand" -d "Get information about what packages do" complete -c omf -f -a destroy -n "__fish_use_subcommand" -d "Remove Oh My Fish" complete -c omf -f -a doctor -n "__fish_use_subcommand" -d "Troubleshoot Oh My Fish" -complete -c omf -f -a channel -n "__fish_use_subcommand" -d "Gets or changes the update channel" +complete -c omf -f -a help -n "__fish_use_subcommand" -d "Display this help" +complete -c omf -f -a install -n "__fish_use_subcommand" -d "Install one or more packages" +complete -c omf -f -a list -n "__fish_use_subcommand" -d "List local packages" +complete -c omf -f -a new -n "__fish_use_subcommand" -d "Create a new package from a template" +complete -c omf -f -a reload -n "__fish_use_subcommand" -d "Reload the current shell" +complete -c omf -f -a remove -n "__fish_use_subcommand" -d "Remove a theme or package" +complete -c omf -f -a repositories -n "__fish_use_subcommand" -d "Manage package repositories" +complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_assert_args_count 1" -a add -d "Add a package repository" +complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_assert_args_count 1" -a list -d "List installed repositories" +complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_assert_args_count 1" -a remove -d "Remove a package repository" +complete -c omf -f -a search -n "__fish_use_subcommand" -d "Search for a plugin or theme" +complete -c omf -f -a theme -n "__fish_use_subcommand" -d "Install and list themes" +complete -c omf -f -a update -n "__fish_use_subcommand" -d "Update Oh My Fish" +complete -c omf -f -a version -n "__fish_use_subcommand" -d "Display version"