ncdu to analyze disk space and find huge folders you can clean And `z` (the zsh plugin) to cd into your most common directories
Ask HN: What are your favorite terminal programs?
101–110 of 203 posts
Re: Ask HN: What are your favorite terminal programs?
#102history | 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´.
Re: Ask HN: What are your favorite terminal programs?
#103Some 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.
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?
#104Written 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…
Re: Ask HN: What are your favorite terminal programs?
#105micro, mc, ag silver searcher, stat, find, aria2c, xev, w3m, wmctrl, nohup, xdotool, docker, php, ffmpeg, phantomjs, du, ls [From my history file, all others are homemade scripts and little functions in .bashrc]
Re: Ask HN: What are your favorite terminal programs?
#106 $ alias | grep lpass
lp=lpass
lpls='lpass ls'
lppw='lpass show -c -G --password'
lpsh='lpass show -G'
lpst='lpass status'
[0]: https://github.com/lastpass/lastpass-cliRe: Ask HN: What are your favorite terminal programs?
#107Re: Ask HN: What are your favorite terminal programs?
#108Earlier 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…
Re: Ask HN: What are your favorite terminal programs?
#109Earlier 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'
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?
#110Great 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:
GNU parallel is like xargs, but in parallel: