A comprehensive PowerShell 7 profile configuration with Oh My Posh integration, advanced Git aliases, and optimized development experience.
- Oh My Posh integration with custom themes
- Colorized syntax highlighting for commands, parameters, and variables
- Predictive text with history-based suggestions
- Beautiful prompt with Git status integration
- Advanced PSReadLine configuration
- Intelligent tab completion with menu display
- History-based predictions and search
- Smart key bindings for efficient editing
- Comprehensive Git aliases for faster workflow
- Visual Git status in prompt
- Quick Git commands:
gs,ga,gc,gp,glog, etc. - Branch management shortcuts
- Directory navigation:
ll,la,..,... - Quick workspace access:
cdws,cdprof - Alias overview:
Show-GitAliases
- PowerShell 7.x
- Git
- Oh My Posh (optional but recommended)
- Clone this repository
- Copy the profile content to your PowerShell profile location
- Restart PowerShell or run
. $PROFILE
# Copy the enhanced profile to your PowerShell profile
Get-Content "enhanced-profile.ps1" | Add-Content $PROFILE
# Reload the profile
. $PROFILE| Alias | Command | Description |
|---|---|---|
g |
git |
Short git command |
gs |
git status |
Check repository status |
ga |
git add |
Add files to staging |
gaa |
git add --all |
Add all files to staging |
gc |
git commit |
Commit changes |
gca |
git commit --amend |
Amend last commit |
gp |
git push |
Push to remote |
gl |
git pull |
Pull from remote |
gco |
git checkout |
Switch branches |
gb |
git branch |
List/manage branches |
gm |
git merge |
Merge branches |
gd |
git diff |
Show differences |
glog |
git log --oneline --graph |
Visual commit history |
- Prediction Source: History-based intelligent suggestions
- ListView: Enhanced completion menu
- Smart Navigation: Ctrl+Left/Right for word jumping
- History Search: Up/Down arrows for contextual search
- Commands: Yellow
- Parameters: Green
- Variables: White
- Strings: Blue
- Comments: Dark Green
- Predictions: Dark Gray
├── README.md # This file
├── enhanced-profile.ps1 # Main PowerShell profile
├── Install-Profile.ps1 # Installation script
├── Microsoft.PowerShell_profile.ps1 # Profile template
└── setup-omp.ps1 # Oh My Posh setup script
# Quick Git workflow
gs # Check status
ga . # Add all files
gc "feat: new feature" # Commit with message
gp # Push to remote
# Navigation shortcuts
cdws # Go to workspace
ll # List files (detailed)
la # List all files (including hidden)
# View all Git aliases
Show-GitAliases# Add to your profile
function myalias { your-command $args }
Set-Alias -Name alias -Value your-command# Replace the theme in enhanced-profile.ps1
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/your-theme.omp.json" | Invoke-Expression- Fork the repository
- Create a feature branch
- Make your changes
- Test the profile configuration
- Submit a pull request
This project is open source and available under the MIT License.
Sekhar Valalla
- Email: pyzons@gmail.com
- GitHub: @your-username
- PowerShell team for the amazing shell
- Oh My Posh for beautiful prompts
- PSReadLine for enhanced editing experience
- Git for version control excellence
⭐ Star this repository if it helped improve your PowerShell experience!