📋
pimp
  • Home
  • Installation
  • FAQ
  • Getting Started
    • Welcome
    • Expand commands
    • Run tasks
    • Render templates
    • Execute scripts
    • Next steps
  • User Guide
    • Pimpfile
    • Configuration File
    • Command Expander
    • Task Runner
    • Template Engine
      • Functions
    • Script Engine (PimpScript)
    • Go Library
  • Integrations
    • Bash, Zsh, Fish
Powered by GitBook
On this page
  1. User Guide

Command Expander

PreviousConfiguration FileNextTask Runner

Last updated 4 years ago

When pimp is used as a command expander, it's going to try to match the command and args it is being given with the patterns you have defined in your Pimpfiles.

Syntax

For example in this case, when git is passed (with no extra arguments), it is going to be expanded into git status -sb. If some arguments are passed, then it is going to be expanded to git <args>.

# ~/.Pimpfile
git     : git status -sb
git ... : git
$ pimp git     # equivalent to `git status -sb`
$ pimp git log # equivalent to `git log`

It is tedious to type pimp git instead of git, look at the to make your life easier.

shell integration