tsukae

command module
v0.0.0-...-8111ddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 3 Imported by: 0

README ΒΆ

πŸšπŸ“Š tsukae - Show off your most used shell commands

Tsukae, 使え - means use in Japanese (so it refers to commands that you use)

Built on top of termui and cobra


Big shoutout to jokerj40 for suggesting this project idea (the original thought was to parse the history file)

Installation πŸ”¨

go get -u github.com/irevenko/tsukae
tsukae <SHELL_NAME>

AUR package

Usage πŸ”¬

<SHELL_NAME> - zsh or bash or fish

Flags 🎌

-p, --piechart - use with <SHELL_NAME> (draws only piechart widget)
-b, --barchart - use with <SHELL_NAME> (draws only barchart widget)
-l, --list - use with <SHELL_NAME> (draws only list widget)
-s, --shell-path - use with <SHELL_NAME> Manualy provide the history file path

Draw all widgets

tsukae <SHELL_NAME>

Draw specific widget

tsukae <SHELL_NAME> -p

tsukae <SHELL_NAME> -b

tsukae <SHELL_NAME> -l

Pass certain commands number (1-15) and draw all widgets

tsukae <SHELL_NAME> 10

Draw specific widget with certain commands number

tsukae <SHELL_NAME> 10 -p
tsukae <SHELL_NAME> 5 -b
tsukae <SHELL_NAME> 3 -l

Pass certain history file

tsukae <SHELL_NAME> -s=$HOME/dir/hist_file

Ignore commands by writing the to blacklist file

When you run tsukae for the first time it creates the blacklist file in $HOME/.config/tsukae and you can prevent some commands from displaying Example of blacklist file:

echo
clear
cd

Contributing 🀝

Contributions, issues and feature requests are welcome! πŸ‘
Feel free to check open issues.

Quick Start πŸš€

git clone https://github.com/irevenko/tsukae.git
cd tsukae
go get -d ./...
go build

What I Learned 🧠

  • Parsing Text Files using Go
  • Drawing termui

License πŸ“‘

(c) 2021 Ilya Revenko. MIT License

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL