Forrest logo
back to the peco tool

peco:tldr:96afd

peco: Start peco with a specified query.
$ peco --query "${query}"
try on your machine

The command peco --query "${query}" is executed in a terminal or command line interface.

Here's an explanation of each component:

  • peco: It is a command-line utility for interactive filtering and selecting items from a list. It allows users to interactively narrow down a list of options quickly.

  • --query: It is an option flag used by peco to specify the initial query or search term to be displayed when it starts. It helps in filtering the list.

  • "${query}": It is a shell variable or a placeholder. The value of this variable will be used as the initial search term displayed by peco.

So, when you execute the command peco --query "${query}", it starts the peco utility and displays the initial search term provided in the ${query} variable, allowing you to interactively filter and select items from a list based on that initial search term.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the peco tool