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
- Host: GitHub
- URL: https://github.com/tek/zsh-lastcmd-complete
- Owner: tek
- Created: 2013-07-10T13:02:47.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-10T13:10:09.000Z (almost 13 years ago)
- Last Synced: 2025-01-31T04:35:34.746Z (over 1 year ago)
- Language: Shell
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.