#!/bin/bash path=$(dirname "$(readlink -f "$0")") . "$path"/../../utils/apply-color-helper file="$path"/../posh_theme.omp.json targetTypes=("os" "session" "status") if ! python3 - "$file" "$colorHex" "${targetTypes[@]}"; then { log_error "Failed to edit ${file}" exit 1 } fi <