• Stars
    star
    436
  • Rank 99,877 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 4 years ago
  • Updated over 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
816
star
2

koneko

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

octotui

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

ferris-fetch

🎨🦀 A system information tool for Rustaceans
Rust
122
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
89
star
7

tiktik

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

info-bot

🤖 A Versatile Telegram Bot
Python
40
star
9

go-nyaa

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

web-chat

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

morse2sound

📜🔁🎶 A CLI which converts morse code into sound
Rust
18
star
12

cdnjs2discord

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

octostats

🐙🐱📦 Additional GitHub API methods
Go
16
star
14

spamchk

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

osu-guess-the-map

🎲🧩 Guess the map osu! game using MEVN stack
JavaScript
6
star
16

dotfiles

⚙️ My Linux & Development Settings
Shell
5
star
17

qrcode-extension

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

url-shortener

✂️ Service for Shortening links using Node.js
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

rectangle-animation

🦀 A Simple Animation using Piston Engine
Rust
3
star
28

top-coins

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

irevenko

🔖 Profile README
3
star