https://github.com/edsoncelio/shell-history-exporter
https://github.com/edsoncelio/shell-history-exporter
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/edsoncelio/shell-history-exporter
- Owner: edsoncelio
- Created: 2023-08-09T23:55:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T23:58:44.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T14:41:45.207Z (over 1 year ago)
- Language: Go
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-history-exporter
Small tool to export the zsh_history to a private Gist.
## Requirements
* A valid Github personal token with gist permissions exported with the name GH_TOKEN
## How to use
```
# build
go build .
# execute
export GH_TOKEN=xxxxxxxxxx
./go-history-exporter
``````
Expected output:
```
➜ ./go-history-exporter
zsh_history backup tool!
Reading zsh_history file...
Creating Gist..
Gist created successfully!!
```