I just spent a good 20 minutes trying to figure out how to have a makefile conditionally color its output depending on the current terminal’s level of color support. Long story short, there were a number of make idiosyncrasies that I wasn’t expecting / had forgotten about. So, for future reference, here’s a quick recap:
echoevaluates escapes by default
:=evaluates immediately, while
Gist – This is a pretty low-tech bash function to convert a hex color code (e.g.
#f83a22) to an ANSI foreground or background color (e.g.
This is a simple dashboard that can run in your spare Tmux/Screen panes. You invoke it with a list of sub-panels you wish to include (e.g. news feed, email synopsis, weather report, system stats, etc.), and it will gather the data and fit it to the size of its pane. You can, of course, run it outside of Tmux, but it does take up the whole terminal, so unless you have multiple terminals natively (Linux/Mac), this is pretty limiting. [Read More]