Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.
/ on Public archive

A command line tool helps you execute commands base on a command context to avoid duplicate typing.

Notifications You must be signed in to change notification settings

dannypsnl/on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On

This is a command line tool helps you avoid keep typing the same prefix when you are operating the very similar commands

Demo:

asciicast

Install

$ go get -u github.com/dannypsnl/on

Key Binds

  • <C-a>: control + A, type this then write done new contexts and <Enter>, you would see the context be apply on to old context

    For example:

    on(kubectl)>
    # <C-a>get<Enter>
    on(kubectl get)>
    
  • <C-c>: control + C, type this would pop out the last element in command context

    For example:

    on(kubectl get)>
    # <C-c>
    on(kubectl)>
    

At here you can see we avoid typing kubectl again and again

Completion

Completion would find out all command, alias, and executable for command on

To install the completion could use:

# for zsh
$ make zsh-completion
# or for bash
$ make bash-completion

About

A command line tool helps you execute commands base on a command context to avoid duplicate typing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published