#!/usr/bin/env bash input=$(cat) cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd') chroot_part="" if [ -n "${debian_chroot:-}" ]; then chroot_part="(${debian_chroot})" fi printf "${chroot_part}\033[01;32m$(whoami)@$(hostname -s)\033[00m:\033[01;34m${cwd}\033[00m"