Live data from Hacker News

Ask HN: What are your favorite terminal programs?

news.ycombinator.com

101–110 of 203 posts

Re: Ask HN: What are your favorite terminal programs?

#102

history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 1 167 16.7% git 2 130 13% ll 3 94 9.4% clear 4 90 9% make 5 80 8% cd 6 57 5.7% e 7 52 5.2% cat 8 45 4.5% man 9 38 3.8% valgrind 10 37 3.7% rm Where ´e´ is an alias for ´vim´.

Clear? I always press ctrl-l

Re: Ask HN: What are your favorite terminal programs?

#103

Some of them that I can't live without are - git-standup http://github.com/kamranahmedse/git-standup - z https://github.com/rupa/z - ZSH https://github.com/robbyrussell/oh-my-zsh Apart from that, some that I use time to time - curl-size https://github.com/egoist/curl-size - ripgrep https://github.com/BurntSushi/ripgrep - jq https://github.com/stedolan/jq - asciinema https://github.com/asciinema/asciinema

git-standup seems cool, but misses the one thing I would want from it: show me the commits I've made from each repo that I work in, sorted by time. That way I can see that I made commit 1 in repo X, then commit 2 in repo Y, then commit 3 in repo X. Also instead of "-d 4" to see 4 days ago, "January 15th" or "Thursday" would be handy.

> show me the commits I've made from each repo that I work in, sorted by time

It does show the commits from each repo sorted by time. Repositories are not sorted though, if that is what you are asking for.

Re: Ask HN: What are your favorite terminal programs?

#104
post #36

Written in Rust: - fd: A simple, fast and user-friendly alternative to 'find' https://github.com/sharkdp/fd - ripgrep: ripgrep recursively searches directories for a regex pattern https://github.com/BurntSushi/ripgrep - exa: Replacement for 'ls' written in Rust https://github.com/ogham/exa - bat: A 'cat' replacement. I recommend following the customizations. https://github.com/sharkdp/bat Written in Python: - asciine…

Thanks for the links. In the future, please don’t use indentation to set off lists like this. It makes it difficult to read due to side scrolling, particularly on mobile. People often use - (hyphen) or * set of bullet points, and separate lines with new lines. You don’t get elements, but it does work. Plus, your links will work, too :)

Re: Ask HN: What are your favorite terminal programs?

#107
I find myself using noti a lot. It's effectively just a message generator that can receive data over stdout or trigger manually. It uses whatever the most appropriate notification method for your system is, so it feels very seemless. I use it for long-running tasks where I don't really know how long it's going to take.

https://github.com/variadico/noti

Re: Ask HN: What are your favorite terminal programs?

#108
post #59

Earlier quoted context omitted.

Thanks for the tip. I briefly read through the docs and it's not clear what this offers above and beyond what tmux does?

The benefit of tmuxp is pretty clear from its README[1]. It gives this example: session_name: 4-pane-split windows: - window_name: dev window layout: tiled shell_command_before: - cd ~/ # run as a first command in all panes panes: - shell_command: # pane no. 1 - cd /var/log # run multiple commands in this pane - ls -al | grep \.log - echo second pane # pane no. 2 - echo third pane # pane no. 3 - echo forth pane # pan…

I use a shell script for such config. eg tmux split-window -h ; tmux send-keys "ls -la" C-m; ...

Re: Ask HN: What are your favorite terminal programs?

#109
post #61

Earlier quoted context omitted.

If you're just using find to run grep against all files then you would be better off using the recursive flag in grep instead

I like the composition of tools, it lets you extend your usage pretty easily. I personally run this 20 times a day: find -name '*.java' | xargs grep 'pattern'

But at least there you're searching for specific files. I was talking only about running a find to launch an instance of grep for every file found. That's more keystrokes to get a slower result.

For what it's worth, my biggest usage of find is similar to your java example (except a different file extension). I also do do '-exec sed...') a lot too.

Re: Ask HN: What are your favorite terminal programs?

#110
The pipe viewer pv: https://ivarch.com/programs/pv.shtml

Great way to give you a progress bar on a long-running process from the command line.

entr is useful for doing stuff on file change:

http://www.entrproject.org/

GNU parallel is like xargs, but in parallel:

https://www.gnu.org/software/parallel/

Post reply on HN