News for hackers. Stuff that matters.
Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by avinassh on Tuesday May 25, 2021 @01:31PM (#27279742)
Can you suggest some tools which auto suggest like Fig and work with zsh? The built in auto complete in zsh works nicely, but how do I get the drop down of all options?
Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by kubami on Tuesday May 25, 2021 @02:37PM (#27280552)
Each needs to define an autocomplete script. oh-my-zsh provides plugins that do that for common tools like git.

Those scripts are usually supplied by the CLI tool itself. For example for terraform: https://www.terraform.io/docs/cli/commands/index.html#shell-...

Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by vishnugupta on Tuesday May 25, 2021 @02:00PM (#27280091)
This is the closest I see: https://github.com/ohmyzsh/ohmyzsh

Since switching to it from the default shell of Mac OS terminal (zsh I think) I have found it immensely productive. Some of the things it does seem Magic like auto completing uncommitted files when I say “git add <tab>”

Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by lobocinza on Tuesday May 25, 2021 @03:37PM (#27281484)
Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by ttt0 on Tuesday May 25, 2021 @02:48PM (#27280711)
ohmyzsh is a plugin manager for zsh, not a different shell.
Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by lobocinza on Tuesday May 25, 2021 @03:36PM (#27281479)
You need no tool at all as you can do I reverse search in any shell with ^R. If you want to do it with a better UX you can use fzf. If you want the suggestions you can use zsh-autosuggestions or fish shell. Setting them up is straightforward. And if you want an example config for Zsh you can look mine. Zinit, the package manager, automatically load/install the plugins when loading the shell.

https://github.com/danisztls/dotfiles/blob/main/shell/zshrc

Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by elteto on Tuesday May 25, 2021 @01:34PM (#27279784)
Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by skratlo on Tuesday May 25, 2021 @05:13PM (#27282747)
Fish does that by default
Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal by FractalHQ on Tuesday May 25, 2021 @03:51PM (#27281721)
I really like Navi