Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wisehackermonkey/doc-history
copies a cleaned-up version of your previous commands to the clipboard to use in making documentation easier
https://github.com/wisehackermonkey/doc-history
Last synced: 2 days ago
JSON representation
copies a cleaned-up version of your previous commands to the clipboard to use in making documentation easier
- Host: GitHub
- URL: https://github.com/wisehackermonkey/doc-history
- Owner: wisehackermonkey
- License: unlicense
- Created: 2021-02-09T07:50:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-18T03:33:36.000Z (over 3 years ago)
- Last Synced: 2024-12-10T16:13:02.670Z (30 days ago)
- Language: JavaScript
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# doc-history
### copies a cleaned up version of your previous commands to the clipboard to use in making documentation easier-----
[![Node](https://img.shields.io/badge/Javascript-Enabled-lightgreen.svg)](https://shields.io/) [![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/).## Install & run
#### Npm
```bash
npm install --global doc-history
```## Usage:
```bash
doc-history -n 10
```# How it works
### what i would do before doc-history
```bash
>history
1794 code docker-compse.yml
1795 mv docker-compse.yml docker-compose.yml
1796 docker-compose up -d
1797 code docker-compose.yml
1798 docker-compose up -d
1799 docker ps
1800 docker ps -f
1801 docker ps -t
1802 docker ps
1803 docker ps -t
1804 docker ps
1805 docker-compose logs
1806 code .env
1807 docker-compose up
1808 docker-compose up -d
1809 docker-compose logs -f
1810 docker-compose up -d
```
### remove duplicates
```bash
>history
1797 code docker-compose.yml
1806 code .env
1807 docker-compose up
1808 docker-compose up -d
1809 docker-compose logs -f
```
### delete line numbers```bash
>history
code docker-compose.yml
code .env
docker-compose up
docker-compose up -d
docker-compose logs -f
```
### copy paste into my github markdown page and add markdown styling
```bash
```bash
code docker-compose.yml
code .env
docker-compose up
docker-compose up -d
docker-compose logs -f```
```## doc-history Improves this workflow
```bash
doc-history -n 10
```
### This is copied to your clipboard!
### now Paste this into markdown doc!
```
#
```bash
code docker-compose.yml
code .env
docker-compose up
docker-compose up -d
docker-compose logs -f```
```# Development
### how to publish docker image to docker hub
```bash
git clone https://github.com/wisehackermonkey/doc-history.gitcd doc-history
```## how to build
```bash
npm install --global .
```
## remove locally
```bash
npm uninstall --global doc-history
list install global deps
npm ls -g --depth=0
```
## how to publish package```bash
npm loginnpm version minor
OR
npm version patchnpm publish --access=public
npm uninstall --global doc-history
npm install --global doc-history
```------
# Future Additions
- Fuzzy matching EX:
##### these get remove
```
powershell.exe /version
powershell.exe \version
```
- wizard that asks about to pick which ones you want to keep
# Contributors
Made with [contributors-img](https://contrib.rocks).
## License
#### This project is licensed under the [![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/).