This is spread over multiple accounts, which exist to separate our In this post I describe how I configured my shell to automaticallyĬhange my terminal theme when I connect to a remote machine in any of our AWS accounts.Īs I’ve mentioned previously, at Talis, we run most of our infrastructure
Iterm2 color schemes best series#
This is the second in a series of posts on useful bash aliases and shellĬustomisations that developers here at Talis use for their own personal Copy the Smyck.tmTheme file into ~/.But we are hackers and hackers have black terminals with green font colors ~ John Nunemaker.Copy the smyck.vim file into ~/.vim/colors, which is where vim will look later on when we run colorscheme smyck.
Iterm2 color schemes best install#
Go ahead and install both delta and bat if you want to follow along with me here as I talk you through all the color-related changes I’ve made in my dotfiles recently. It’s a lot like cat (you can use it to look at the contents of a file), but it will syntax highlight the output.ĭelta is actually building on top of bat, and it also looks great. batīefore I heard of delta, I’d heard of bat, which bills itself as “A cat(1) clone with wings.” Per this indispensable reference, Terminal.app does not support True Color, whereas iTerm2 does. Modern terminal apps support True Color, which basically means they support whatever colors you want.įor years, I used the Terminal app that comes with Macs because it seemed fine, and I didn’t understand why people preferred iTerm2. I thought terminal programs were constrained to only have access to the 16 colors provided by your terminal theme? That last bit is still quite cool to me, months later. That means a nice shade of green when highlighting new lines, a nice shade of red when highlighting removed lines, and actual syntax highlighting on all of the lines. I configured git to use delta when displaying diffs (I use git show and git diff all the time), and I configured it to display them in a way that looks a lot like how the same diff would look on GitHub. Here’s what changed: I came across delta, a new-ish project which bills itself as “A viewer for git and diff output”, and it just looks so good that it made me realize I need to raise my expectations a bit. It was a “you get what you get and you don’t get upset” situation. Often it wasn’t even readable Vim didn’t necessarily know which of the terminal’s 16 colors made sense for which contexts, and it might choose to render dark grey text on a black background, because it didn’t really know better. I kind of thought that was the best I could hope for. When I wanted to customize the colors in my editor, I’d do it indirectly, by configuring the color schemes for my terminal app.ĭoing that affects the colors of all programs you run, not just vim, and it seemed good enough for me.
I tried it out occasionally, but none of them looked that good.