Overview
Aliases are defined in~/.config/powershell/conf.d/20-aliases.ps1 and provide convenient shortcuts for frequently used commands.
Git Aliases
Common Git operations shortened to 2-3 characters:| Alias | Command | Description |
|---|---|---|
g | git | Git base command |
gs | git status | Show working tree status |
ga | git add | Add files to staging |
gaa | git add --all | Stage all changes |
gc | git commit | Create a commit |
gcm | git commit -m | Commit with message |
gp | git push | Push to remote |
gpl | git pull | Pull from remote |
gd | git diff | Show unstaged changes |
gds | git diff --staged | Show staged changes |
gco | git checkout | Switch branches/restore files |
gb | git branch | List/manage branches |
gl | git log --oneline --graph | Pretty log graph |
gst | git stash | Stash changes |
gstp | git stash pop | Apply stashed changes |
Usage Examples
Git workflow with aliases
Implementation
Source: 20-aliases.ps1
Lazygit
Quick access to the lazygit TUI:Source: 20-aliases.ps1
HTTPie Aliases
HTTP method shortcuts for API testing:| Alias | Command | Description |
|---|---|---|
hget | http GET | HTTP GET request |
hpost | http POST | HTTP POST request |
hput | http PUT | HTTP PUT request |
hdel | http DELETE | HTTP DELETE request |
Usage Examples
API testing with HTTPie
Implementation
Source: 20-aliases.ps1
System Monitor Aliases
Usebtop as the default system monitor:
Source: 20-aliases.ps1
Common Utility Aliases
which
Find command locations (PowerShell equivalent):Source: 20-aliases.ps1
touch
Create empty files (Unix-style):Source: 20-aliases.ps1
Modern Tool Integrations
While defined in30-tools.ps1, these aliases are worth noting:
bat (cat replacement)
eza (ls replacement)
| Command | Description |
|---|---|
ls | List files with icons |
ll | Long format with git status |
la | Long format including hidden files |
lt | Tree view (2 levels) |
lta | Tree view including hidden files |
zoxide (cd replacement)
Conditional Loading
All aliases check for tool availability before creation:Pattern used throughout
- No errors if a tool isn’t installed
- Profile loads successfully on any machine
- Easy to see which tools are available
See Also
- Profile Structure - How modules are loaded
- Functions - Custom function system
- Custom Functions - Individual function documentation
