Shell Configurations
Comprehensive shell configurations for Bash and Zsh with 80+ aliases, functions, and custom prompts.
Installation
# Install shell configurations
make install-shell
# Or manually
./install.sh shell
What's Included
- 80+ Aliases: Common DevOps tasks, file operations, system management
- Advanced Functions: 100+ functions for code navigation, system monitoring, and DevOps workflows
- Smart Prompts: Git status, K8s context, environment info
- Auto-completion: Enhanced tab completion for commands
- Environment Variables: Optimized PATH and tool settings
Available Aliases
This shell configuration includes 100+ productivity aliases across all major DevOps tools:
Git Aliases
gs - git status (show repository status)
ga - git add (stage files)
gc - git commit (commit changes)
gp - git push (push to remote)
gl - git log --oneline (show commit history)
gd - git diff (show changes)
gb - git branch (list branches)
gco - git checkout (switch branches)
gpl - git pull (pull from remote)
gst - git stash (stash changes)
gstp - git stash pop (apply and remove stash)
Docker Aliases
d - docker (docker command)
dc - docker-compose (docker-compose command)
dps - docker ps (list running containers)
dpsa - docker ps -a (list all containers)
di - docker images (list images)
dex - docker exec -it (execute in container)
dlog - docker logs (show container logs)
dstop- docker stop (stop container)
drm - docker rm (remove container)
drmi - docker rmi (remove image)
Kubernetes Aliases
k - kubectl (kubectl command)
kgp - kubectl get pods (list pods)
kgs - kubectl get services (list services)
kgd - kubectl get deployments (list deployments)
kgn - kubectl get nodes (list nodes)
kdp - kubectl describe pod (describe pod)
kds - kubectl describe service (describe service)
kdd - kubectl describe deployment (describe deployment)
klog - kubectl logs (show pod logs)
kex - kubectl exec -it (execute in pod)
Terraform Aliases
tf - terraform (terraform command)
tfi - terraform init (initialize terraform)
tfp - terraform plan (plan changes)
tfa - terraform apply (apply changes)
tfd - terraform destroy (destroy infrastructure)
tfo - terraform output (show outputs)
tfs - terraform show (show state)
Advanced Functions
# Code Navigation
ctags() # Generate ctags for current directory
findreplace() # Find and replace text in files
glog() # Git log with graph
gstatus() # Git status with details
gitinit() # Initialize git repo with initial commit
gbranch() # Show current branch with status
# System Monitoring
dstats() # Docker container resource usage
psaux() # Top CPU consuming processes
memtop() # Top memory consuming processes
load() # System load average
iostat() # Disk I/O statistics
netstats() # Network interface statistics
sysinfo() # Comprehensive system information
# File Operations
monitor() # Monitor file changes in directory
dirsize() # Show current directory size
backup() # Backup file with timestamp
restore() # Restore from backup
tmpdir() # Create temporary directory
# Utility Functions
weather() # Show weather information
gdiffw() # Git diff with word-level changes
glogf() # Git log with file changes
gblame() # Git blame for file