11 Jan '18, 6pm

Giles Bowkett ➜ Quick Terminal/iTerm2 Hack https://t.co/mbSGSiuOqH

My shell prompt uses unix status codes to either return a go-get-em Unicode smiley, when everything's going well, or a shrug, when a command failed. To get this into my shell prompt, I use a shell prompt function, which sets than the usual $PS1 environment variable. You need the function because it sets the value of $PS1 every time something changes. This also makes it easy to, for example, display whatever git user, or set of users, I happen to "be," since I use git pair . A nice side effect is that you can call arbitrary functions in there. tab-title $(this) sets the title of the Terminal or iTerm2 tab to whatever my current git branch name is. Since the shell prompt function is executed every time my shell needs to display a new prompt, the tab title updates every time I change git branches. A couple notes: first, as you might guess from the comment, I found the code fo...

Full article: http://gilesbowkett.blogspot.com/2018/01/quick-terminalit...

Tweets

BTWF ads: Chris Meloni for Quick Hamburgers

seriouslyomg.com 12 Jan '18, 6am

Before Chris Meloni starred in Harold & Kumar Go to the White Castle, he starred in a commercial for a Belgian hamburger j...

Quick Start Guide

Quick Start Guide

iproperty.com.sg 15 Jan '18, 4pm

Welcome on board with us on iProperty Singapore! Excited to show you what we have and how we can help you to generate lead...