<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/oh-this-is-prod--66peljokj" -->

---
title: Oh... This is Prod?! | daily.dev
description: A practical tip for avoiding accidental actions against production AWS environments. By creating distinct iTerm2 profiles with color-coded backgrounds (green...
canonical: https://daily.dev/posts/oh-this-is-prod--66peljokj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Oh... This is Prod?! | daily.dev
og:description: A practical tip for avoiding accidental actions against production AWS environments. By creating distinct iTerm2 profiles with color-coded backgrounds (green...
og:url: https://daily.dev/posts/oh-this-is-prod--66peljokj
og:image: https://api.daily.dev/og/posts/66PeLjOkj.png
og:image:alt: Oh... This is Prod?!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Oh... This is Prod?!

**[Gunnar Morling](https://daily.dev/sources/gunnar-morling)** · 2 min read · 0 upvotes · 0 comments

## Summary

A practical tip for avoiding accidental actions against production AWS environments. By creating distinct iTerm2 profiles with color-coded backgrounds (green for dev, red for prod) and using a zsh precmd hook that watches the AWS_PROFILE environment variable, the terminal automatically switches its visual appearance to match the active AWS profile, making it immediately obvious which environment you're connected to.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.morling.dev/blog/oh_this_is_prod/>

## Similar posts on daily.dev

- [Error banner in shell](https://daily.dev/posts/error-banner-in-shell-bkd4vna8q) · Lobsters · 0 upvotes · 0 comments
- [Supercharge Your Terminal With Zsh](https://daily.dev/posts/supercharge-your-terminal-with-zsh-idvukriuz) · Callstack Blog · 14 upvotes · 1 comments
- [Make your Bash prompt actually useful on Linux](https://daily.dev/posts/make-your-bash-prompt-actually-useful-on-linux-ejrmi15ah) · All Things Open · 0 upvotes · 0 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#bash](https://daily.dev/tags/bash)

[View this post on daily.dev](https://daily.dev/posts/oh-this-is-prod--66peljokj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Oh... This is Prod?!","url":"https://daily.dev/posts/oh-this-is-prod--66peljokj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/oh-this-is-prod--66peljokj"},"datePublished":"2026-03-16T08:14:38.320Z","dateModified":"2026-03-16T08:31:06.618Z","description":"A practical tip for avoiding accidental actions against production AWS environments. By creating distinct iTerm2 profiles with color-coded backgrounds (green...","image":"https://www.morling.dev/images/shell_profile_selection.gif","thumbnailUrl":"https://www.morling.dev/images/shell_profile_selection.gif","isAccessibleForFree":true,"articleSection":"Gunnar Morling","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Gunnar Morling","logo":"https://media.daily.dev/image/upload/s--77UJH_xq--/f_auto,q_auto/v1773648773/logos/gunnar-morling?_a=BAMAMiiu0","url":"https://daily.dev/sources/gunnar-morling"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/oh-this-is-prod--66peljokj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"aws,bash","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Gunnar Morling","item":"https://daily.dev/sources/gunnar-morling"},{"@type":"ListItem","position":3,"name":"Oh... This is Prod?!"}]}
```

