win-alias is a lightweight tool designed to manage aliases in Windows CMD, offering Linux-like functionality with persistence stored in the Registry. This software simplifies command-line operations for users seeking efficiency and customization.
Key Features:
Registry Storage: Aliases are securely stored in HKCU\Software\win-alias\aliases for durability and easy management.
Session Support: Utilizes doskey to apply aliases immediately within the current session.
Opt-In Persistence: Users can enable persistence across CMD sessions using the --setup command.
Clean Architecture: Built with Go, ensuring a robust and maintainable design.
Audience & Benefit:
Ideal for Windows developers and administrators who desire a Linux-like experience. win-alias streamlines workflows by allowing users to create persistent aliases, enhancing productivity and reducing repetitive tasks.
Installation is straightforward via winget, making it accessible and easy to integrate into your development environment.
README
win-alias
Fast and lightweight alias manager for Windows CMD, bringing Linux-like alias functionality with Registry-backed persistence.
Features
Registry Storage: Aliases are stored in HKCU\Software\win-alias\aliases.
Session Support: Uses doskey for immediate alias application.
Opt-in Persistence: Automated CMD AutoRun integration via --setup.
Clean Architecture: Built with the Standard Go Project Layout.
Installation
Via WinGet (Recommended)
Once the manifest is accepted by the community repository:
winget install Nidzoki.win-alias
Via Scoop
scoop bucket add nidzoki https://github.com/Nidzoki/scoop-bucket
scoop install alias
Via Go
go install github.com/Nidzoki/win-alias/cmd/win-alias@latest
Note: This will install as win-alias. You may want to rename it to alias in your GOPATH/bin.
Manual Installation
Open CMD as Administrator.
Run install.bat. This builds the tool as alias.exe and moves it to C:\Windows.
Usage
Add or update an alias:
alias gs="git status"
List active aliases:
alias
Remove an alias:
unalias gs
Persistence
By default, aliases are only available in the current session. To make them persist across all new CMD windows: