Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.42 KB

File metadata and controls

37 lines (22 loc) · 1.42 KB

Bang Command Autocomplete for Pi

Suggests shell commands when you type ! or !! in Pi.

Bang command autocomplete with common commands

What you can do

  • Suggests commands while you type ! or !!.
  • Includes a useful built-in command list.
  • Can optionally learn command names from your shell history.
  • Keeps normal Pi prompts unchanged.

Install

Install it through Pi:

pi install npm:@firstpick/pi-extension-bang-command-autocomplete

Restart Pi if the package does not appear in your current session.

How to use it

Type ! followed by part of a shell command. Choose a suggestion, finish the command, and submit it as usual. Use !! when the output should stay out of the next model prompt.

  • /bang-refresh — rebuild autocomplete index.
  • /bang-status — show indexed command count, history-index status, runtime-learned command/line counts, and learned flag count.

Before you start

No setup is needed for the built-in command suggestions. Suggestions from your shell history are optional; see the technical reference if you want to enable them.

Technical details

See TECHNICAL.md for complete commands, configuration, compatibility, security, and troubleshooting information.