An open API service indexing awesome lists of open source software.

https://github.com/tek/zsh-lastcmd-complete

zsh completer that inserts the previous command's output lines
https://github.com/tek/zsh-lastcmd-complete

Last synced: over 1 year ago
JSON representation

zsh completer that inserts the previous command's output lines

Awesome Lists containing this project

README

          

## Description

This zsh completer silently executes the previous command line and adds each
line of its output as a match.

## Installation
[`antigen`](https://github.com/zsh-users/antigen 'antigen repo')` bundle tek/zsh-lastcmd-complete`

## Usage
`bindkey '^c' last-cmd-complete` (choose your key ;)

## Customization
`zstyle ':completion:last-cmd-complete:lastcmd-output:transform' $cmd $function`

When completing the output of `$cmd`, call `$function` to alter the employed
cmdline.