• Stars
    star
    435
  • Rank 96,793 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created over 3 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐚📊 Show off your most used shell commands

🐚📊 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

More Repositories

1

what-anime-cli

❓🖼 Find the anime scene by image using your terminal
Go
813
star
2

koneko

🐈🌐 nyaa.si terminal BitTorrent tracker
Go
214
star
3

octotui

🐙🐱🖥️ GitHub stats in your terminal
Go
209
star
4

ferris-fetch

🎨🦀 A system information tool for Rustaceans
Rust
118
star
5

forge-node-app

🛠📦🎉 Generate Node.js boilerplate with optional libraries & tools
TypeScript
92
star
6

weebsay

🎭👄 Like cowsay but it's random anime quote
Go
87
star
7

tiktik

📱🥴 TikTok terminal client for browsing & downloading videos
Go
86
star
8

info-bot

🤖 A Versatile Telegram Bot
Python
39
star
9

go-nyaa

🐈📦 nyaa.si client library for Go
Go
33
star
10

web-chat

💬 A Simple Web Chat App using Sockets & Node.js
JavaScript
22
star
11

cdnjs2discord

🤖🚀📦 A Discord Bot for accessing the cdnjs platform
Go
18
star
12

morse2sound

📜🔁🎶 A CLI which converts morse code into sound
Rust
16
star
13

octostats

🐙🐱📦 Additional GitHub API methods
Go
16
star
14

spamchk

🔎⚠️ A tiny spam detection library
Go
11
star
15

dotfiles

⚙️ My Linux & Development Settings
Shell
5
star
16

qrcode-extension

🔮🔳 A Little QR Code Generator Extension for Chrome
JavaScript
5
star
17

url-shortener

✂️ Service for Shortening links using Node.js
JavaScript
5
star
18

osu-guess-the-map

🎲🧩 Guess the map osu! game using MEVN stack
JavaScript
5
star
19

blockchain-node

🧱⛓ A Plain Blockchain implementation using Node.js
TypeScript
5
star
20

labs-playground

🏫 A Collection of College Labs
Python
4
star
21

morse-code-desktop

👾♻️ A Morse Code translator desktop app using GTK3 bindings
Go
4
star
22

cleveroad-test-task

🍀🛣️ A Basic CRUD API with Auth and MySQL as DB
JavaScript
4
star
23

commands-kit

📜 A Divers Set of Command Line Tools
Go
4
star
24

genshin-scrapper

💾 A bunch of scripts for api.genshin.dev
TypeScript
4
star
25

japan-api

🗾 A Complete REST API about Prefectures of Japan
Python
4
star
26

snake-game

🐍 A Classic Snake Game using VanillaJS
JavaScript
3
star
27

top-coins

💎 A Plain Cryptocurrency App using React.js
JavaScript
3
star
28

rectangle-animation

🦀 A Simple Animation using Piston Engine
Rust
3
star
29

irevenko

🔖 Profile README
3
star