Skip to content

About psc command

TIP

  • You can also trigger completion by running psc, then learn about them by completion tip.
  • View the README file of PSCompletions.
  • Enter 'psc' and press 'Enter' to print some module information

list

  1. psc list: Display the completions that have been added.
  2. psc list --remote: Display all available completions in the remote repository.

add

  • Add completion. (one or more)

  • Example:

    • psc add git: Add a completion.
    • psc add git docker: Add multiple completions.
    • psc add *: Add all completions.

rm

  • Remove completion. (one or more)

  • Example:

    • psc rm git: Remove a completion.
    • psc rm git docker: Remove multiple completions.
    • psc rm *: Remove all completions.

update

  • Update completion. (one or more)

  • Example:

    • psc update: Check update.
    • psc update *: Update all completions.
      • psc update * --force: Force update all completions.
    • psc update git: Update a completion.
    • psc update git docker: Update multiple completions.
  • Search completion. (Wildcard character can be used)

  • Example:

    • psc search *: Show all installable completions.
    • psc search p*: Search for completion starting with p in the name.
    • psc search *p*: Search for completion with p in the name.

which

  • Locate completion storage location.

  • Example:

    • psc which git: Get the location of git.
    • psc which psc git: Get the location of psc and git.

alias

  • Manage the alias that triggers completion.

    • It's a list, the initial list is the default trigger name, and you are free to add and re move aliases. (Include the default trigger name)
    • You can't add aliases without Spaces.
  • Example:

    • psc alias list: List all aliases.
    • psc alias add git g gi ./g: Add g gi ./g as git alias.
    • psc alias rm g: Remove g alias.

config

  • Get/Set the configuration.

  • Some configurations:

    • language
    • disable_cache
    • function_name
    • enable_completions_update
    • enable_module_update
    • url
  • Example:

    • psc config language: Get language.
    • psc config language en-US: Set to zh-CN.

completion

  • Specify a configuration for a completion. (These configurations have the highest priority.)

  • By default, each completion has two configurations.

    • language
    • enable_tip
  • Example:

    • psc completion psc enable_tip: Return the value of config.
    • psc completion psc enable_tip 0: Set psc completion to not display tip.
    • psc completion psc language zh-CN: Set the psc completion language to zh-CN.
  • Manage the configuration of the completion menu.
  • psc menu config

  • Some other custom configurations for the completion menu.

    • enable_menu
    • ...
  • Example:

    • psc menu config enable_tip 0: Hide completion tip.
  • psc menu color_theme
  • psc menu line_theme
  • psc menu custom

reset

  • psc reset