惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Y
Y Combinator Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
L
LangChain Blog
美团技术团队
N
Netflix TechBlog - Medium
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
博客园 - 司徒正美
爱范儿
爱范儿
D
DataBreaches.Net
月光博客
月光博客
U
Unit 42
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
MongoDB | Blog
MongoDB | Blog
腾讯CDC

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building a Senior-Level DevOps / SRE / Infrastructure Eng...
FOLASAYO SAMUEL OLAYEMI · 2026-05-27 · via DEV Community

FOLASAYO SAMUEL OLAYEMI

This guide walks through building a powerful terminal environment used by Senior Site Reliability Engineers, DevOps Engineers, and Infrastructure Engineers.

It focuses on:

  • Productivity
  • Safety in production environments
  • Better visibility of system state
  • Faster workflows
  • Modern tooling

1. Why your terminal matters as a Senior Engineer

In real infrastructure work, your terminal is not just a tool — it is your:

  • Control center for production systems
  • Kubernetes interface
  • Cloud interaction layer (AWS/GCP/Azure)
  • Debugging environment
  • Deployment interface

A good terminal setup reduces:

  • Human errors
  • Deployment mistakes
  • Context switching time
  • Cognitive load

2. Install Zsh (modern shell)

macOS already ships with Zsh, but we ensure it’s active and up to date.

Check your shell:

echo $SHELL

If not Zsh:

chsh -s /bin/zsh

3. Install Oh My Zsh (plugin framework)

Oh My Zsh helps manage plugins and configuration.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

4. Install essential plugins (productivity layer)

We install two core plugins:

1. Autosuggestions

Shows previous commands as you type.

git clone https://github.com/zsh-users/zsh-autosuggestions \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

2. Syntax Highlighting

Highlights valid/invalid commands.

git clone https://github.com/zsh-users/zsh-syntax-highlighting \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Enable plugins

Edit:

nano ~/.zshrc

Set:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

Reload:

exec zsh

5. Install Starship (modern prompt system)

Starship is a cross-shell prompt engine that shows:

  • Git branch
  • Node/Python versions
  • Kubernetes context
  • Cloud context
  • Directory status

Install:

brew install starship

Add to .zshrc:

eval "$(starship init zsh)"

Create Starship config

mkdir -p ~/.config
nano ~/.config/starship.toml

Example config:

add_newline = true

format = """
$directory\
$git_branch\
$git_status\
$nodejs\
$python\
$docker_context\
$kubernetes\
$line_break\
$character"""

[character]
success_symbol = "❯"
error_symbol = "❯"

[git_branch]
symbol = "🌿 "

[nodejs]
symbol = "⬢ "

[docker_context]
symbol = "🐳 "

[kubernetes]
symbol = "☸️ "

Reload:

exec zsh

6. Install Nerd Font (Powerline-style icons)

To make icons display correctly in Starship:

Install a Nerd Font:

Recommended: MesloLGS NF

Then:

Set font in terminal (important)

If using:

  • iTerm2 → Preferences → Profiles → Text → Font
  • Terminal.app → Settings → Font

Select:

MesloLGS NF

Without this, icons will break.

7. Install FZF (command search engine)

FZF is one of the most important tools for senior engineers.

brew install fzf
$(brew --prefix)/opt/fzf/install

Features:

  • CTRL + R → search command history
  • CTRL + T → search files
  • Fast navigation

8. Modern CLI replacements

eza (better ls)

brew install eza

Aliases:

alias ls="eza --icons --git"
alias ll="eza -l --icons --git"
alias la="eza -la --icons --git"

bat (better cat)

brew install bat

Alias:

alias cat="bat"

9. Kubernetes tooling (core DevOps skill)

brew install kubectl kubectx

What you get:

  • kubectl → Kubernetes CLI
  • kubectx → switch clusters
  • kubens → switch namespaces (included inside kubectx)

Example:

kubectx

10. Docker productivity tools

brew install lazydocker

Useful aliases:

alias d="docker"
alias dps="docker ps"
alias dex="docker exec -it"

11. AWS CLI setup

brew install awscli

Configure:

aws configure

Or modern method:

aws configure sso

12. Infrastructure as Code (Terraform)

⚠️ Install correctly via HashiCorp tap:

brew tap hashicorp/tap
brew install hashicorp/tap/terraform

Verify:

terraform -version

13. Productivity upgrade tools

zoxide (smart cd)

brew install zoxide

Add:

eval "$(zoxide init zsh)"

Usage:

z project-name

tmux (session persistence)

brew install tmux

Used for:

  • remote servers
  • long-running processes
  • multi-window workflows

14. Security / Debugging tools (SRE mindset)

brew install jq httpie nmap

Why:

  • jq → JSON parsing
  • httpie → API testing (better curl)
  • nmap → network debugging

15. Git aliases (speed boost)

Add to .zshrc:

alias gs="git status"
alias ga="git add"
alias gc="git commit -m"
alias gp="git push"
alias gl="git log --oneline --graph --all"

16. Final .zshrc structure

Your .zshrc should look like:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

eval "$(starship init zsh)"

eval "$(zoxide init zsh)"

# aliases
alias ls="eza --icons --git"
alias ll="eza -l --icons --git"
alias la="eza -la --icons --git"
alias cat="bat"

alias k=kubectl
alias gs="git status"
alias gp="git push"

Final Result: What you have built

Your terminal is now capable of:

Intelligence

  • autosuggestions
  • command history search (fzf)

Visual clarity

  • Starship prompt
  • git + cloud context awareness

DevOps tools

  • kubectl / kubectx
  • terraform
  • docker tooling
  • AWS CLI

Security/debugging

  • jq, httpie, nmap

Productivity

  • zoxide
  • tmux
  • eza + bat

Final mindset shift (important)

A senior DevOps/SRE engineer does not rely on memory.

They rely on:

  • tooling visibility
  • automation
  • fast navigation
  • safe production workflows

Your terminal is now a production-grade engineering workstation, not just a command line.