Skip to content

Command prefixing for continuous workflow using a single tool.

License

Notifications You must be signed in to change notification settings

JanDeDobbeleer/posh-with

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

with

Build status

Program prefixing for continuous workflow using a single tool.

Installation

Use the PowerShell Gallery to install posh-with:

Install-Module posh-with

Usage

with <program>

Starts an interactive shell with where every command is prefixed using <program>.

For example:

PS> with git
PS GIT> add .
PS GIT> commit -a -m "Commited"
PS GIT> push

And to repeat commands:

PS> with gcc -o output input.c
PS GCC -O -OUTPUT INPUT.C>
<enter>
Compiling...
PS GCC -O -OUTPUT INPUT.C>

To execute a shell command proper prefix line with :.

PS GIT> :ls

You can also drop and add different commands.

PS GIT> > add
PS GIT ADD> <some file>
PS GIT ADD> <
PS GIT>

To exit use :q.

Currently supports command history and limited completions.

Theming

To override the current prompt, create your own implementation using this function template:

function global:Write-WithPrompt()
{
    param(
        [string]
        $command
    )

    // Your awesome prompt building logic goes here
}

About

Command prefixing for continuous workflow using a single tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%