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
psc list: Display the completions that have been added.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
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: Addggi./gasgitalias.psc alias rm g: Removegalias.
config
Get/Set the configuration.
Some configurations:
languagedisable_cachefunction_nameenable_completions_updateenable_module_updateurl
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.
languageenable_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.
menu
- Manage the configuration of the completion menu.
menu-symbol
psc menu symbol- Set the symbol in the completion tip.(
»,?,!)
menu-config
psc menu configSome other custom configurations for the completion menu.
enable_menu- ...
Example:
psc menu config enable_tip 0: Hide completion tip.
menu-color_theme
psc menu color_theme
menu-line_theme
psc menu line_theme
menu-custom
psc menu custom
reset
psc reset