Skip to main content

Useful CLI Customizations & Shortcuts for Daily Work

Customizing Bash Prompt

Edit ~/.bashrc and add the following line to enhance your terminal prompt with useful information:

Features:

  • Shows username, hostname, and current time
  • Displays RAM usage percentage dynamically
  • Shows current working directory and active Git branch

Kubernetes Shortcuts (Aliases)

Add the following aliases in ~/.bashrc or ~/.zshrc to speed up Kubernetes operations:

Terraform Shortcuts

Docker Shortcuts

Git Shortcuts

General Productivity Aliases

Applying Changes

After adding these to your shell configuration file, apply the changes: