Live data from Hacker News

Show HN: Unix tool that visualizes shell commands usage

github.com

1–10 of 25 posts

Re: Show HN: Unix tool that visualizes shell commands usage

#3
YES!!! I've been waiting for someone to do this for a decade or more.

This + https://tldr.sh/ and the command line will be so much easier for me (but especially beginners!).

With your tool, having an easy way to copy and paste your personal usage into some central website and then have some scripts would be a great thing to show aggregates.

You could probably just create a single new repo and people could send PR's with their usage dumped to CSV (and they could remove any person info manually before). Then you just have a script that reads those CSVs and prints a nice web page with summary data.

Re: Show HN: Unix tool that visualizes shell commands usage

#4
Looks cool, but nothing much happens for me. I used brew to install go, then ran the following:

  % type -a go
  /usr/local/bin/go
  % cd tsukae
  % go get -d ./...
  go: downloading github.com/inconshreveable/mousetrap v1.0.0
  % go run main.go
  o: downloading github.com/spf13/cobra v1.1.3
  go: downloading github.com/gizak/termui/v3 v3.1.0
  go: downloading github.com/mattn/go-runewidth v0.0.2
  go: downloading github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d
  go: downloading github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7
  go: downloading github.com/spf13/pflag v1.0.5
...a whole lot of usage information... ...but nothing useful (not a go person, so, YMMV)....

Any ideas?

FYI,

  % go version
  go version go1.16 darwin/amd64

Re: Show HN: Unix tool that visualizes shell commands usage

#5

Looks cool, but nothing much happens for me. I used brew to install go, then ran the following: % type -a go /usr/local/bin/go % cd tsukae % go get -d ./... go: downloading github.com/inconshreveable/mousetrap v1.0.0 % go run main.go o: downloading github.com/spf13/cobra v1.1.3 go: downloading github.com/gizak/termui/v3 v3.1.0 go: downloading github.com/mattn/go-runewidth v0.0.2 go: downloading github.com/nsf/termbox…

try go 1.15

Re: Show HN: Unix tool that visualizes shell commands usage

#8

If one of your top commands is `clear`, you may like my alias `c`: $ alias c='clear &&' $ # Usage: $ c git status [1]: https://github.com/grantzvolsky/skel/blob/ea43b1969463a97f96...

If one of your top commands is `cd ../..` you may like my alias/function `..`

    $ .. 2 # go back 2 directories, i.e. 'cd ../..'
    $ .. # 'cd ..'
https://github.com/Aperocky/unix-setup/blob/master/.bashrc#L...

Re: Show HN: Unix tool that visualizes shell commands usage

#9

Looks cool, but nothing much happens for me. I used brew to install go, then ran the following: % type -a go /usr/local/bin/go % cd tsukae % go get -d ./... go: downloading github.com/inconshreveable/mousetrap v1.0.0 % go run main.go o: downloading github.com/spf13/cobra v1.1.3 go: downloading github.com/gizak/termui/v3 v3.1.0 go: downloading github.com/mattn/go-runewidth v0.0.2 go: downloading github.com/nsf/termbox…

cd tsukae

go build

./tsukae

Re: Show HN: Unix tool that visualizes shell commands usage

#10

If one of your top commands is `clear`, you may like my alias `c`: $ alias c='clear &&' $ # Usage: $ c git status [1]: https://github.com/grantzvolsky/skel/blob/ea43b1969463a97f96...

If you use bash (or zsh, and maybe others), hit ^L (control-L) to clear the screen. From the bash(1) manual:

clear-screen (C-l) Clear the screen leaving the current line at the top of the screen. With an argument, refresh the current line without clearing the screen.

Post reply on HN