Skip to content

Repository files navigation

Command Operator

Build StatusBuild Status

Make command operation easier to use.

Commander OperatorCommander Operator

Install

# macOS
curl https://raw.githubusercontent.com/Fedomn/c/master/release/c.darwin -o c && chmod +x ./c
# linux
curl https://raw.githubusercontent.com/Fedomn/c/master/release/c.linux -o c && chmod +x ./c

Features

  • YAML format make configuration easier
  • Terminal UI make operation faster
  • Fuzzy Search make searching more convenient
  • Including flexible normal mode and search mode
  • Support rsync upload function based on SSH command
    • ssh cmd pattern must be ssh -i key user@ip

Usage

configuration demo:

-
name: show ipcmd: curl https://ifconfig.co/json
-
name: jump servercmd: ssh -i key user@ip
-
name: show datecmd: date

Terminal UI shortcuts in normal mode:

keyoperation in Normal Mode list
j / <Down>Scroll Down
k / <Up>Scroll Up
<C-d>Scroll Half Page Down
<C-u>Scroll Half Page Up
<C-f>Scroll Page Down
<C-b>Scroll Page Up
<C-r>Rsync Upload
q / <C-c> / <Escape>Close App
/Into Search Mode
EnterSelect a command
BackspaceDelete the last letter of search string

Terminal UI shortcuts in search mode:

keyoperation in Search Mode list
<C-j> / <Down>Scroll Down
<C-k> / <Up>Scroll Up
<C-u>Erase search string
<C-r>Rsync Upload
<C-c> / <Escape>Back to Normal Mode
BackspaceDelete the last letter of search string

About

Command Operator. Make command operation easier to use.

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages