Hacker News new | ask | show | jobs
by hrcxxx 2859 days ago
Oh-my-zsh + iterm2 is the best combination out there imho
4 comments

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.

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.

Kitty is OpenGL based. Apple is deprecating OpenGL in Mojave.
Deprecated just means all the bugs have been found and you can use it without fear!
I find this religion quite amusing.
You should do, it was a joke.
Yeah but it’s still gonna work. I mean they haven’t updated it in ages either.
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.

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.

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.
My scripts are still bash scripts, I just run them with `bash somescript.sh`.
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.)
Neat! It's exactly what I had before then.
Afaik Terminal.app still doesn’t support true color, let alone such things as ligatures.
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.

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?
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.
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

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

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.

How exactly did you set up that keybinding? Are you using Automator or something like Hammerspoon, etc?
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/

Thanks for this. Never knew that feature existed and now I've got it set up -- it's super convenient.
I cannot understand how my colleagues get any command line work done with the default macOS terminal.
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.
What’s wrong with it? I spend most of my day using it.