https://github.com/mrc0mmand/rememberthiscommand
Simple CLI utility to keep track of hard-to-rember commands instead of fishing them out of a Bash history
https://github.com/mrc0mmand/rememberthiscommand
cli command-line commands remember
Last synced: 3 months ago
JSON representation
Simple CLI utility to keep track of hard-to-rember commands instead of fishing them out of a Bash history
- Host: GitHub
- URL: https://github.com/mrc0mmand/rememberthiscommand
- Owner: mrc0mmand
- License: mit
- Created: 2018-06-07T17:24:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-08T22:29:42.000Z (about 8 years ago)
- Last Synced: 2025-08-31T19:36:38.699Z (11 months ago)
- Topics: cli, command-line, commands, remember
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RememberThisCommand
Simple CLI utility to keep track of hard-to-rember commands instead of fishing
them out of a Bash history.
Each command record consists of a tag, which allows command grouping, a command, and an optional note, which describes what the command does.
## Usage
* Adding a command
```
$ rtcmd --tag git --command "git commit -m 'commit message'" --note "Commit without an editor"
```
* Listing saved commands
```
$ ./rtcmd --list
--- bugzilla ---
3 | bugzilla query --component --outputformat "%{id}" --status NEW,ASSIGNED,POST,MODIFIED,ON_DEV,ON_QA,VERIFIED
| Get IDs of opened bugs for given components
--- git ---
1 | git commit -m 'commit message'
| Commit without an editor
2 | log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
| Fancy git log
$ ./rtcmd --list bugzilla
--- bugzilla ---
3 | bugzilla query --component --outputformat "%{id}" --status NEW,ASSIGNED,POST,MODIFIED,ON_DEV,ON_QA,VERIFIED
| Get IDs of opened bugs for given components
```
* Deleting a command
```
$ ./rtcmd --delete 2
$ ./rtcmd --list
--- bugzilla ---
3 | bugzilla query --component --outputformat "%{id}" --status NEW,ASSIGNED,POST,MODIFIED,ON_DEV,ON_QA,VERIFIED
| Get IDs of opened bugs for given components
--- git ---
1 | git commit -m 'commit message'
| Commit without an editor
```
* Searching in saved commands
```
$ ./rtcmd --search "%bugs%"
--- bugzilla ---
3 | bugzilla query --component --outputformat "%{id}" --status NEW,ASSIGNED,POST,MODIFIED,ON_DEV,ON_QA,VERIFIED
| Get IDs of opened bugs for given components
```
Note: the search term is in an SQL syntax - % matches zero or more characters, ? matches zero or one character.