All Projects → OrkoHunter → Keep

OrkoHunter / Keep

Licence: mit
A Meta CLI toolkit : Personal shell command keeper and snippets manager

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Keep

Fd
A simple, fast and user-friendly alternative to 'find'
Stars: ✭ 19,851 (+4301.55%)
Mutual labels:  terminal, command-line
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (-23.5%)
Mutual labels:  terminal, command-line
Bcal
🔢 Storage and general-purpose calculator
Stars: ✭ 329 (-27.05%)
Mutual labels:  terminal, command-line
Termplotlib
Plotting on the command line
Stars: ✭ 294 (-34.81%)
Mutual labels:  terminal, command-line
Jmxterm
Interactive command line JMX client
Stars: ✭ 389 (-13.75%)
Mutual labels:  terminal, command-line
Pastel
A command-line tool to generate, analyze, convert and manipulate colors
Stars: ✭ 3,742 (+729.71%)
Mutual labels:  terminal, command-line
Sad
CLI search and replace | Space Age seD
Stars: ✭ 350 (-22.39%)
Mutual labels:  terminal, command-line
Teip
Select partial standard input and replace with the result of another command efficiently
Stars: ✭ 280 (-37.92%)
Mutual labels:  terminal, command-line
Py cui
A python library for intuitively creating CUI/TUI interfaces with widgets, inspired by gocui.
Stars: ✭ 380 (-15.74%)
Mutual labels:  terminal, command-line
Castero
TUI podcast client for the terminal
Stars: ✭ 375 (-16.85%)
Mutual labels:  terminal, command-line
Theme.sh
A script which lets you set your $terminal theme.
Stars: ✭ 290 (-35.7%)
Mutual labels:  terminal, command-line
Go Prompt
Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.
Stars: ✭ 4,255 (+843.46%)
Mutual labels:  terminal, command-line
Hyper Site
The official website for the Hyper terminal
Stars: ✭ 289 (-35.92%)
Mutual labels:  terminal, command-line
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+627.05%)
Mutual labels:  terminal, command-line
Micro
A modern and intuitive terminal-based text editor
Stars: ✭ 18,526 (+4007.76%)
Mutual labels:  terminal, command-line
Cmd2
cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
Stars: ✭ 342 (-24.17%)
Mutual labels:  terminal, command-line
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+525.5%)
Mutual labels:  terminal, command-line
Terminal
The new Windows Terminal and the original Windows console host, all in the same place!
Stars: ✭ 79,371 (+17498.89%)
Mutual labels:  terminal, command-line
Terminal Link
Create clickable links in the terminal
Stars: ✭ 361 (-19.96%)
Mutual labels:  terminal, command-line
Lookatme
An interactive, terminal-based markdown presenter
Stars: ✭ 392 (-13.08%)
Mutual labels:  terminal, command-line

logo

PyPI PyPI - Downloads

A Meta CLI toolkit

Your personal shell command keeper

Why?

Writwick Wraj loves using the command line.

Writwick googles "How to do X in terminal?" and multiple forums and blog posts finally provide him the magical command for the rescue. Problem Solved !

Fast forward couple weeks, Writwick has to do X in terminal, again. Wraj remembers solving this few weeks ago. Let him do a reverse-i-search with Ctrl+R. Nope, can't remember sh*t. Browser search history? 25 web pages found matching X. Argh!

Writwik finally finds the solution. From this time Writwik starts writing the commands somewhere online for the future.

Wait, why shouldn't he keep the command in his terminal itself if this is only place where he'll ever have use it?

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 and keep 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

  1. Create a directory in your home directory called .bash

     mkdir -p ~/.bash
    
  2. Copy completion/keep.bash to ~/.bash/keep

     curl -SLo "~/.bash/keep" "https://raw.githubusercontent.com/OrkoHunter/keep/master/completions/keep.bash"
    
  3. Add the following lines to ~/.bashrc file

     [ -f "~/.bash/keep.bash" ] && . "~/.bash/keep"
    

zsh

  1. Create a directory in your home called .zsh

     mkdir -p ~/.zsh
    
  2. Copy completion/keep.zsh to ~/.zsh/_keep

     curl -SLo "~/.zsh/_keep" "https://raw.githubusercontent.com/OrkoHunter/keep/master/completions/keep.zsh"
    
  3. Add the following lines inside ~/.zshrc file

     fpath=(~/.zsh $fpath)
     autoload -Uz compinit && compinit
    

Contribute

This is a very young project. If you have got any suggestions for new features or improvements, please comment over here. Pull Requests are most welcome !


Not a command line fanatic? Here are some resources for you :

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].