A simple fish prompt for DevOps work

Ahmed Khanzada
Sep 9 · 1 min read

The two primary things that I need to know when I engineer modern DevOps pipelines for companies are my:

  • AWS profile
  • Kubernetes context

These two determine which environments and clusters will be affected by my terraform, kubectl, and helm commands.

I use the fish shell which offers a fresh approach to the command line with powerful autosuggestions. I customize my prompt by modifying the .config/fish/functions/fish_prompt.fish file to look like this:

This gives me a prompt that looks like:

Ahmed Khanzada

Written by

I love Emacs, BSD, and kittens (https://enzu.ru)

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade