command
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Jun 26, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Commander Operator
Make command operation easier to use.
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 ip
cmd: curl https://ifconfig.co/json
-
name: jump server
cmd: ssh -i key user@ip
-
name: show date
cmd: date
Terminal UI shortcuts in normal mode:
key |
operation 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 |
Enter |
Select a command |
Backspace |
Delete the last letter of search string |
Terminal UI shortcuts in search mode:
key |
operation 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 |
Backspace |
Delete the last letter of search string |
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.