---
title: "pipedream/justfile at main · thechangelog/pipedream"
description: "!https://github.com/thechangelog/pipedream/blob/main/justfile"
date: 2024-12-14
published: true
tags:
  - bash
  - cli
  - just
  - linux
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://github.com/thechangelog/pipedream/blob/main/justfile" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://opengraph.githubassets.com/ee443ffb45eb1707ef8d602430fb13ed7d7f52b4a993c3d40863c6f1d13b5d6f/thechangelog/pipely" alt="pipely/justfile at main · thechangelog/pipely — I like the idea of having like this 20-line Varnish config that we deploy around the world, and it’s like: Look at our CDN! - thechangelog/pipely" loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">pipely/justfile at main · thechangelog/pipely</div>
      <div class="embed-card-description">I like the idea of having like this 20-line Varnish config that we deploy around the world, and it’s like: Look at our CDN! - thechangelog/pipely</div>
      <div class="embed-card-meta">GitHub &middot; github.com</div>
    </div>
  </a>
</div>


I found this nugget in thechangelogs justfile, it lets you add color to your justfile with variables quite easily.

``` bash
# https://linux.101hacks.com/ps1-examples/prompt-color-using-tput/

_BOLD := "$(tput bold)"
_RESET := "$(tput sgr0)"
_BLACK := "$(tput bold)$(tput setaf 0)"
_RED := "$(tput bold)$(tput setaf 1)"
_GREEN := "$(tput bold)$(tput setaf 2)"
_YELLOW := "$(tput bold)$(tput setaf 3)"
_BLUE := "$(tput bold)$(tput setaf 4)"
_MAGENTA := "$(tput bold)$(tput setaf 5)"
_CYAN := "$(tput bold)$(tput setaf 6)"
_WHITE := "$(tput bold)$(tput setaf 7)"
_BLACKB := "$(tput bold)$(tput setab 0)"
_REDB := "$(tput setab 1)$(tput setaf 0)"
_GREENB := "$(tput setab 2)$(tput setaf 0)"
_YELLOWB := "$(tput setab 3)$(tput setaf 0)"
_BLUEB := "$(tput setab 4)$(tput setaf 0)"
_MAGENTAB := "$(tput setab 5)$(tput setaf 0)"
_CYANB := "$(tput setab 6)$(tput setaf 0)"
_WHITEB := "$(tput setab 7)$(tput setaf 0)"
``` 

Usage
``` bash
echo:
    echo {{_BOLD}}{{_GREEN}}hello there{{_RESET}}
```
