News for hackers. Stuff that matters.
Re:How to Enable Autocomplete in Mac Terminal by hrcxxx on Monday August 27, 2018 @08:31AM (#17851021)
Oh-my-zsh + iterm2 is the best combination out there imho
Re:How to Enable Autocomplete in Mac Terminal by AdamGibbins on Monday August 27, 2018 @08:37AM (#17851050)
Both are horribly slow, seriously, try iTerm2 for a week then try Terminal - you'll then notice how much latency iTerm2 adds to basic key presses.

oh-my-zsh is also horribly slow out of box, spend some time manually configuring zsh and observe your terminals open in fractional seconds instead of multiple seconds.

Re:How to Enable Autocomplete in Mac Terminal by fredoliveira on Monday August 27, 2018 @09:01AM (#17851187)
iTerm2 with the new metal renderer (only added to the stable releases recently) is as fast as Terminal. But if you want to see what a truly fast terminal can be, give Kitty a try: https://sw.kovidgoyal.net/kitty/

As for OMZ, yep, it includes a lot of functionality out of the box which makes it a little slow. I personally use prezto because it's quicker. Give that a try.

Re:How to Enable Autocomplete in Mac Terminal by nsnick on Monday August 27, 2018 @10:50AM (#17851822)
Kitty is OpenGL based. Apple is deprecating OpenGL in Mojave.
Re:How to Enable Autocomplete in Mac Terminal by jrockway on Monday August 27, 2018 @12:00PM (#17852237)
Deprecated just means all the bugs have been found and you can use it without fear!
Re:How to Enable Autocomplete in Mac Terminal by beschicker on Monday August 27, 2018 @04:03PM (#17854021)
I find this religion quite amusing.
Re:How to Enable Autocomplete in Mac Terminal by rounce on Tuesday August 28, 2018 @03:38AM (#17857146)
You should do, it was a joke.
Re:How to Enable Autocomplete in Mac Terminal by Synaesthesia on Monday August 27, 2018 @11:37AM (#17852096)
Yeah but it’s still gonna work. I mean they haven’t updated it in ages either.
Re:How to Enable Autocomplete in Mac Terminal by toomanybeersies on Monday August 27, 2018 @08:44AM (#17851084)
Personally, I haven't found keypress latency to be a particular issue.

I'm familiar enough with the terminal that I generally type by rote, I don't even need to look at the terminal while typing for most common tasks.

Re:How to Enable Autocomplete in Mac Terminal by ReverseCold on Monday August 27, 2018 @09:47AM (#17851454)
I switched from iTerm+ohmyzsh to Terminal + fish.

It's basically exactly what I had before except I can't click on links in my terminal.

Re:How to Enable Autocomplete in Mac Terminal by yoz-y on Monday August 27, 2018 @11:02AM (#17851893)
I've tried fish for a year or two but in the end I went back to zsh. I found that the differences in scripting languages were just not worth it.
Re:How to Enable Autocomplete in Mac Terminal by ReverseCold on Monday August 27, 2018 @12:21PM (#17852369)
My scripts are still bash scripts, I just run them with `bash somescript.sh`.
Re:How to Enable Autocomplete in Mac Terminal by hibbelig on Monday August 27, 2018 @11:54AM (#17852198)
You can cmd-double click. (I don't use fish, though. But I don't think there's a way for fish to turn it off.)
Re:How to Enable Autocomplete in Mac Terminal by ReverseCold on Monday August 27, 2018 @12:20PM (#17852363)
Neat! It's exactly what I had before then.
Re:How to Enable Autocomplete in Mac Terminal by cseelus on Monday August 27, 2018 @10:44AM (#17851783)
Afaik Terminal.app still doesn’t support true color, let alone such things as ligatures.
Re:How to Enable Autocomplete in Mac Terminal by kitsunesoba on Monday August 27, 2018 @05:15PM (#17854622)
I don’t know about color (never needed anything fancy that way) but Terminal has supported ligatures for at least the past macOS release or two. I use Fira Code with mine and it works exactly as expected.

iTerm2 is nice but for my usage it does too much. If there were a lite version that cut a lot of the more niche features and focused solely on speed and responsiveness I might consider it.

Re:How to Enable Autocomplete in Mac Terminal by shriver on Tuesday August 28, 2018 @08:25AM (#17858216)
I use iTerm2 all the term and I can honestly say I've never given a second thought to responsiveness. What are you noticing specifically? Are you typing super fast?
Re:How to Enable Autocomplete in Mac Terminal by taude on Monday August 27, 2018 @08:49AM (#17851120)
My terminals stay open inbetween computer re-boots, so not really a problem? I imagine most dev-types keep terminals open all the time on their local dev machines.
Re:How to Enable Autocomplete in Mac Terminal by weeha on Monday August 27, 2018 @09:21AM (#17851324)
I can highly recommend Zplug instead of oh-my-zsh, I find it much faster. https://github.com/zplug/zplug

I also like FZF a lot for fast history search: https://github.com/junegunn/fzf

Re:How to Enable Autocomplete in Mac Terminal by tvon on Monday August 27, 2018 @12:40PM (#17852499)
I know this is territory that gets rehashed every time someone says "hey, I like tool X..." but I still get a kick out of browsing these threads to see what tools people are using.

On that front, I've been using ZIM: https://github.com/zimfw/zimfw

I also recently added sandboxd so certain things are not run during shell init (rbenv/pyenv/asdf/etc): https://github.com/benvan/sandboxd

Re:How to Enable Autocomplete in Mac Terminal by Kagerjay on Monday August 27, 2018 @01:37PM (#17852935)
Haven't tried oh-my-zsh, but iterm2 is my favorite terminal.

I have a keybinding set to CTRL+CMD+SPACEBAR for show/hiding item2. This is fairly close to activating the spotlight shortcut (CMD+SPACEBAR)

This makes it easy for me to seamlessly swap between my IDE and 2-3 terminals. Without having to use desktop swapping, etc.

Re:How to Enable Autocomplete in Mac Terminal by luckman212 on Monday August 27, 2018 @09:31PM (#17855974)
How exactly did you set up that keybinding? Are you using Automator or something like Hammerspoon, etc?
Re:How to Enable Autocomplete in Mac Terminal by Rebelgecko on Monday August 27, 2018 @10:05PM (#17856122)
If you want one persistent window to always popup with a hotkey:

Preferences => Profiles => (Choose or make from scratch[1]) => Keys => Configure Hotkey Window

I think that works with the Control-Command-Space binding mentioned above. I use caps lock to toggle my terminal, which required some remapping via Karabiner[2]

[1] I have a profile called "Hotkey Profile" I don't remember if I set this up myself or if iTerm did it for me. I have it configured to appear on whichever monitor my mouse is on when I open it, and to have its window fill the bottom 1/3 or so of my screen

[2] https://pqrs.org/osx/karabiner/

Re:How to Enable Autocomplete in Mac Terminal by luckman212 on Saturday September 08, 2018 @12:41AM (#17939439)
Thanks for this. Never knew that feature existed and now I've got it set up -- it's super convenient.
Re:How to Enable Autocomplete in Mac Terminal by toomanybeersies on Monday August 27, 2018 @08:42AM (#17851072)
I cannot understand how my colleagues get any command line work done with the default macOS terminal.
Re:How to Enable Autocomplete in Mac Terminal by lloeki on Monday August 27, 2018 @09:14AM (#17851263)
To each his own: I find Terminal.app to be one of the best terminal out there, all platforms combined. Speed and latency are awesome, colors are exact. Line marks (both manual and with automatic prompt detection) navigated with cmd+up/down is a godsend. Escape sequences to update tab and window titles with directory and document paths are great too. The only thing I miss is having different settings for alt and meta on the left and right alt keys. The days of Terminal.app being crap (up till Leopard) are long gone since Snow Leopard where it had a major update, and was constantly improved upon on each subsequent release.
Re:How to Enable Autocomplete in Mac Terminal by gumby on Monday August 27, 2018 @10:40AM (#17851766)
What’s wrong with it? I spend most of my day using it.