Skip to main content

Terminal commands cheat sheet helper

Project description

                    _      _                _       _               _
  ___ _ __ ___   __| | ___| |__   ___  __ _| |_ ___| |__   ___  ___| |_
 / __| '_ ` _ \ / _` |/ __| '_ \ / _ \/ _` | __/ __| '_ \ / _ \/ _ \ __|
| (__| | | | | | (_| | (__| | | |  __/ (_| | |_\__ \ | | |  __/  __/ |_
 \___|_| |_| |_|\__,_|\___|_| |_|\___|\__,_|\__|___/_| |_|\___|\___|\__|

cmdcheatsheet is a package that allows storing terminal commands.

Help command

cmdcheatsheet -h

or:

cmdcheatsheet --help

Add command

cmdcheatsheet -a <command> <command_description>

for example:

cmdcheatsheet -a "ls" "list directory content"

Display commands

Display all commands:

cmdcheatsheet -p

or:

cmdcheatsheet

Display commands along with ids:

cmdcheatsheet -i

Display commands using table view:

cmdcheatsheet -t

Search for a command

cmdcheatsheet -f <command>

Search for a command and show it along with an id:

cmdcheatsheet -fi <command>

Search for a command and show it using the table view:

cmdcheatsheet -ft <command>

Update command

cmdcheatsheet -u <command_id> <command> <command_description>

Remove command

cmdcheatsheet -d <command_id>

Show all command names

cmdcheatsheet -nl

Configuration

cmdcheatsheet configuration folder is located at ~/.config/cmdcheatsheet.
The config is called config.json

Available configurations

  • commandsStoreLocation - Path to file in JSON format that consists of the command list.
  • alternativeStoreLocations - Path list to JSON files that might be used as an alternative commands store location. Every item in the list has a storeName property, which is just a store name and the second property is storeLocation, responsible for the path to the commands store (JSON file location).

Here is a config.json example:

{
    "commandsStoreLocation": "/Users/myusername/.config/cmdcheatsheet/commands.json",
    "alternativeStoreLocations": [
        {
            "storeName": "unix",
            "storeLocation": "/Users/myusername/my-configs/cmdcheatsheet/unix_commands.json"
        },
        {
            "storeName": "windows",
            "storeLocation": "/Users/myusername/my-configs/cmdcheatsheet/windows_commands.json"
        }
    ]
}

Display configuration

cmdcheatsheet -dc

or display configuration by key:

cmdcheatsheet -dc <config_key>

Display available configurations

This command displays all available configurations. Each command consists of a key and an explanation.

cmdcheatsheet -dac

Set configuration

cmdcheatsheet -sc <configuration_key> <configuration_value>

Remove configuration by key

cmdcheatsheet -rc <configuration_key>

Set configuration to default

cmdcheatsheet -sctd

Set a single config value

cmdcheatsheet -ssctd <configuration_key>

Alternative commands stores

It's possible to have multiple command stores and switch between them. In this way, you'll be able to have separate configs for windows, Linux, and OSX, or in case you want to split the config in some other way. This feature is called alternative command stores.

Add alternative commands store

cmdcheatsheet -aas <store_name> <store_location>

Update alternative commands store

cmdcheatsheet -uas <store_name> <store_location>

Delete alternative commands store

cmdcheatsheet -das <store_name>

Display alternative commands store details

cmdcheatsheet -dasd

Switch to alternative commands store

cmdcheatsheet -stas <store_name>

Display applied alternative store

cmdcheatsheet -daasn

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmdcheatsheet-0.0.11.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmdcheatsheet-0.0.11-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file cmdcheatsheet-0.0.11.tar.gz.

File metadata

  • Download URL: cmdcheatsheet-0.0.11.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for cmdcheatsheet-0.0.11.tar.gz
Algorithm Hash digest
SHA256 93ea3321fbf2b2e3dec34d7d213b8b9d3ba72ce05d38440ed04b649037968662
MD5 9b63ca755fa744e338aa3e8c8b90cbdd
BLAKE2b-256 711d6b1df8f9a39ee9c4494666ecb2df3379c0d68ce5f95c196a7fe059d64973

See more details on using hashes here.

File details

Details for the file cmdcheatsheet-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: cmdcheatsheet-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for cmdcheatsheet-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 64ae157b06c3be9a6ec593446d25abc4fbae7a6ba2b4ff08916f20e697c0b550
MD5 efdd757379d65fd5bd429549e62fabeb
BLAKE2b-256 9c98d1af26b2167441ed51f8a9797ae94f826c045064983d623e80df7935e9bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page