Python Package - keep¶
Overview¶
Keep is a Meta CLI toolkit : Personal shell command keeper and snippets manager.
Features¶
- Save a new command with a brief description
- Search the saved commands using powerful patterns
- Save the commands as a secret GitHub gist
- Use
keep push
andkeep pull
to sync the commands between GitHub gist and other computers.
ProTip : Save the commands you usually forget in ssh sessions and sync it with your local machine.
Installation¶
pip3 install keep
Use Python 3.6 or later.
You can install pip3 using apt-get as sudo apt install python3-pip
.
Usage¶
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.
See the detailed usage and tutorial.
Command-line Completion¶
To enable command-line completion (TAB completion) follow these steps for the shell of your choice
bash¶
- Create a directory in your home directory called
.bash
mkdir -p $HOME/.bash
- Copy completion/keep.bash to
$HOME/.bash/keep
curl -SLo "$HOME/.bash/keep" "https://raw.githubusercontent.com/OrkoHunter/keep/master/completions/keep.bash"
- Add the following lines to
$HOME/.bashrc
file
[ -f "$HOME/.bash/keep" ] && . "$HOME/.bash/keep"
zsh¶
See Also: zsh
- Create a directory in your home called
.zsh
mkdir -p $HOME/.zsh
- Copy completion/keep.zsh to
$HOME/.zsh/_keep
curl -SLo "$HOME/.zsh/_keep" "https://raw.githubusercontent.com/OrkoHunter/keep/master/completions/keep.zsh"
- Add the following lines inside
$HOME/.zshrc
file
fpath=($HOME/.zsh $fpath)
autoload -Uz compinit && compinit
Resources¶
Not a command line fanatic? Here are some resources for you :
- https://github.com/jlevy/the-art-of-command-line
- https://github.com/herrbischoff/awesome-osx-command-line
- https://github.com/alebcay/awesome-shell
- https://github.com/aharris88/awesome-cli-apps
Appendix: Links¶
- Tools
- Development \<\<\<\<\<\<\< HEAD:3-Resources/Tools/Python/Python Packages/Python Package - keep.md
- Python
- Python Packages
- CLI Tools =======
- 2-Areas/MOCs/Python
- Python Packages
- CLI Tools List >>>>>>> develop:3-Resources/Tools/Developer Tools/Languages/Python/Python Packages/Python Package - keep.md
Backlinks:
list from [[Python Package - keep]] AND -"Changelog"