个人炮弹指挥人员
keep的Python项目详细描述
meta cli工具包
Your personal shell command keeper
为什么?
writwick wraj喜欢使用命令行。
writwick googles“如何在终端做x?”“多个论坛和博客文章最终为他提供了神奇的救援命令。问题解决了!
再过两周,writwick又要在终端上做x了。Wraj记得几周前解决了这个问题。让他用ctrl+r进行反向i-搜索。不,不记得浏览器搜索历史了吗?找到25个与x匹配的网页。啊!
writwik终于找到了解决方案。从这个时候起,writwik开始在将来的某个地方在线编写命令。
等等,如果这是他唯一能使用命令的地方,他为什么不把命令保存在终端里呢?
功能
- 用简短的说明保存新命令
- 使用强大的模式搜索保存的命令
- 将命令另存为机密github gist
- 使用keep push和keep pull在github gist和其他计算机之间同步命令。
protip:保存ssh会话中通常忘记的命令,并将其与本地计算机同步。
安装
$ pip3 install keep
使用Python3.6或更高版本。
您可以使用apt get作为sudo apt install python3-pip安装pip3。
使用量
Usage: keep [OPTIONS] COMMAND [ARGS]... Keep and view shell commands in terminal only. Read more at https://github.com/orkohunter/keep Options: -v, --verbose Enables verbose mode. --help Show this message and exit. Commands: edit Edit a saved command. github_token Register a GitHub Token to use GitHub Gists as a backup. grep Searches for a saved command. init Initializes the CLI. list Shows the saved commands. new Saves a new command. pull Pull commands from saved GitHub gist. push Push commands to a secret GitHub gist. rm Deletes a saved command. run Executes a saved command. update Check for an update of Keep.