day 301 — code 365

Mon 10 Oct 2016

Chrome

This shortcut that I use (in Atom) to open the previously closed tab(s) also works in Chrome!!!

Cmd + Shift + T

Awesome.

Terminal

I added a Custom segment to my Bullet Train prompt order:

BULLETTRAIN_CUSTOM_MSG="&"
BULLETTRAIN_PROMPT_ORDER=(
custom
git
context
dir
time
)

So, when I am searching for the last prompt (after a large print output), I can just search for &!

And then, to make the new settings run, instead of restarting iTerm, I do:

. ~/.zshrc

Edit: I decided to add an Emoji to my Powerline prompt order instead:

BULLETTRAIN_CUSTOM_MSG="🚀 "

And then I went into Settings > Keyboard > Text

and saved zz as 🚀, so that I can search for 🚀 to go to my last prompt!

I’ve also realised how color themes work in iTerm: we are allowed 8 colours by default (black, red, green, yellow, blue, magenta, cyan, white), and color themes just MAP them to different color definitions!

So, “white” is basically custom “white” in a color theme (it could be red).

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.