Fast and lightweight alias manager for Windows CMD, bringing Linux-like alias functionality with Registry-backed persistence.
- Registry Storage: Aliases are stored in
HKCU\Software\win-alias\aliases. - Session Support: Uses
doskeyfor immediate alias application. - Opt-in Persistence: Automated CMD
AutoRunintegration via--setup. - Clean Architecture: Built with the Standard Go Project Layout.
Once the manifest is accepted by the community repository:
winget install Nidzoki.win-aliasscoop bucket add nidzoki https://github.com/Nidzoki/scoop-bucket
scoop install aliasgo install github.com/Nidzoki/win-alias/cmd/win-alias@latestNote: This will install as win-alias. You may want to rename it to alias in your GOPATH/bin.
- Open CMD as Administrator.
- Run
install.bat. This builds the tool asalias.exeand moves it toC:\Windows.
Add or update an alias:
alias gs="git status"List active aliases:
aliasRemove an alias:
unalias gsBy default, aliases are only available in the current session. To make them persist across all new CMD windows:
alias --setupTo disable persistence:
alias --disablewinget uninstall Nidzoki.win-alias- Open CMD as Administrator.
- Run
uninstall.bat.
Build locally:
go build -o alias.exe ./cmd/win-aliasRun tests:
go test ./...