Lurker News
I really enjoy using a command-line interface instead of a graphical user interface, and was wondering if anyone had any solid recommendations for applications that one can use in a terminal window.

Comments (385) 158 threads

vanderZwan7 replies#
I love fish-shell, but after years of using it I switched to Oh My ZSH!. The bash compatibility makes it a whole lot easier to use when you're the type of person who has to look up "how to do X on the command line" on the internet more often than you'd like to admit (that would be me).

https://ohmyz.sh/

vanderZwan3 replies#
It's mainly the bash compatibility - does Oh My Fish fix that problem?

Continue this thread — 3 replies

h1d#
Same except using zplug.

I still use fish for scripting as its syntax is far more casual looking.

bfrydl#
But the whole reason I use fish is because I DON'T have to look things up on the internet because it uses sane syntax instead of some arcane combination of brackets, symbols, and the word “if” spelled backwards.
CGamesPlay#
A quick tip for anyone disparaging the compatibility of fish shell, since this has solved most of the interior concerns for me:

  # Bash:
  FOO=bar ./command
  # Equivalent in bash and fish:
  env FOO=bar ./command
ComputerGuru1 reply#
fwiw, we are shipping a number of features in fish 3.0 (any day now!) that are specifically targeting at maximizing compatibility with most bash scripts (still not POSIX).

That includes support for && and || and a few other things that should go a long way towards making most code you find drop-in ready.

explainplease2 replies#
Really? Doesn't that go against the stated fish design document and ridiculousfish's intention for fish?

I'm more concerned about making fish scripts work well than making fish run bash scripts. (Maybe fish 3.0 will improve that too.) I've tried to use fish for writing somewhat serious scripts several times, and I've always run into frustrating problems that sent me back to bash for scripting. Fish is an excellent interactive shell, of course.

Continue this thread — 2 replies

nil_pointer1 reply#
I like using a different plugin manager with OMZ. https://github.com/tarjoilija/zgen

If you use a lot of addons, this can load up prompts faster without losing any OMZ goodness.

dancek#
I also love zgen and used to use some parts of OMZ with it. But after debugging weird issues a bunch of times and always finding a funny opinionated config in OMZ I changed everything to Prezto. Zgen supports Prezto natively.

FWIW, here's my .zshrc. https://github.com/dancek/dotfiles/blob/master/.zshrc

sfdgsdfg#
I'm in the same boat as you. Also used Fish for several years and loved it, but there's some incompatibilities here and there (dont remember exactly what, I think it was difference in how to pipe streams vs bash/zsh). In the end i switched to zsh & oh-my-zsh and haven't run into issues since (made the switch maybe 6 years ago). I'm a heavy terminal user so this part I'm not experimenting with again.
lunchables#
Great list. I recently switched from ranger to nnn and have been really happy. It's tiny and extremely fast:

https://github.com/jarun/nnn

archon810#
Really happy to see tig in your list and so high in the list of comments. Definitely one of my favorites too.
artwr4 replies#
A few of the ones I use almost daily

- Pandoc a handy document format converter: https://pandoc.org/ - Ripgrep, a faster grep: https://github.com/BurntSushi/ripgrep - There are quite a few prompt-toolkit based CLI which have been really nice: * mycli (https://github.com/dbcli/mycli), pgcli (https://github.com/dbcli/pgcli) * ptpython/ptipython (https://github.com/prompt-toolkit/ptpython) - Youtube-dl: http://rg3.github.io/youtube-dl/ - fzf a fuzzy finder for the console: https://github.com/junegunn/fzf - jq for JSON manipulation: https://stedolan.github.io/jq/ - Miller for CSV/TSV: https://github.com/johnkerl/miller
I would imagine you have already scoured the "awesome" lists: https://github.com/agarrharr/awesome-cli-apps#terminal-utili...

jaydouken#
Thank you so much for posting that list, somehow it slipped under my radar. Great suggestions!
egze1 reply#
Wow. mycli and pgcli are so good!
h1d#
It is. Omitting the semi colon to execute a statement alone feels good.
pingiun#
ptpython seems really useful, thank you! I was frustrated with the limited capabilities of the vanilla python REPL.
Dowwie5 replies#
Just about every Rust cli app written by sharkdp:

    https://github.com/sharkdp/fd
    https://github.com/sharkdp/bat
    https://github.com/sharkdp/diskus
    https://github.com/sharkdp/hyperfine
For viewing csv's as tabular, paged data from the terminal, check out VisiData (python) https://github.com/saulpw/visidata
qorrect1 reply#
| For viewing csv's as tabular

I use peco for this https://github.com/peco/peco , thanks for sharkdp checking those out.

Dowwie#
How are you using peco to view csv's?
apjana#
CLI utilities from jarun for daily use:

    File manager: https://github.com/jarun/nnn
    Google search: https://github.com/jarun/googler
    DuckDuckGo search: https://github.com/jarun/ddgr
    Bookmark manager: https://github.com/jarun/Buku
    Multicore resize & rotate: https://github.com/jarun/imgp
    Calculator: https://github.com/jarun/bcal
    Date diff and timers: https://github.com/jarun/pdd
    Kernel keylogger: https://github.com/jarun/keysniffer
The developer (https://github.com/jarun) writes cmdline utilities only. His tools are highly optimized for performance and integrates seamlessly with the DE. Most of them are available on popular distros and Homebrew.
ptd1 reply#
I might be revealing my lack of experience here, but why would you need an app to view your csv? What is the benefit of this over running the data frame or df.head?
dwrodri2 replies#
Visidata is much more than a simple CSV viewer. It can open xls/xlsx/sas7bdat/spss files, and allows you to quickly edit the in-memory copy of the table using Vim-like keyboard shortcuts. It also allows you to create plots using Braille Unicode symbols. It's a great tool!
ptd#
Thanks for sharing! Will check it out.
ptd#
Thank you so much for sharing this with me. Life changer!
ComputerGuru#
Since @sharkdp's work was originally inspired by @burntsushi's rg, you might be interested in xsv for CSV viewing (and manipulation): https://github.com/BurntSushi/xsv
dancek#
fd is awesome so I have to check the others out too. Thanks for the tip!
rutierut4 replies#
Ngrok - https://ngrok.com

So easy and super convienient if you quickly need your local server accessible from somewhere else.

AndreasBackx1 reply#
I keep a VPS running with Nginx on it for a specific port. Then I forward that port via SSH using remote forwarding to enable this exact functionality. It's free if you've already got a server running.
avip1 reply#
ngrok is free even if you don't have a server running... and you can tunnel raw TCP.

(not affiliated, I just really admire ngrok so I take it personally when people don't use it :))

aerovistae#
god, I had this same idea and thought about making it! I'm so glad you shared this, I had no idea someone else already did it! and did a great job with it, too, by the looks of it
npstr2 replies#
This one is even easier because it doesn't require to install anything, just make a good old ssh tunnel: http://localhost.run
jakelazaroff#
The thing I really love about ngrok, though, is the web dashboard where you can inspect your tunnelled traffic and even replay requests: https://ngrok.com/docs#inspect
brink#
Oh, looks like you can get a consistent sub-domain too, provided it's unique enough. Nice.
tyrbo#
<3 ngrok. been paying (love reserved names) for a while now.

for a self hosted option, I've also been using https://github.com/fatedier/frp lately.

vishaltelangre#
I found https://serveo.net as a good alternative to ngrok since it requires no signup, no installation and provides a custom subdomain for free.

Load more comments