Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codenewa/helpful-alias-powershell
Useful powershell alias
https://github.com/codenewa/helpful-alias-powershell
alias new-alias powershell shortcut windows
Last synced: 3 months ago
JSON representation
Useful powershell alias
- Host: GitHub
- URL: https://github.com/codenewa/helpful-alias-powershell
- Owner: codenewa
- Created: 2022-03-17T18:49:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T16:46:06.000Z (almost 2 years ago)
- Last Synced: 2024-05-18T05:34:57.065Z (6 months ago)
- Topics: alias, new-alias, powershell, shortcut, windows
- Language: PowerShell
- Homepage:
- Size: 13.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - codenewa/helpful-alias-powershell - Useful powershell alias (PowerShell)
README
# helpful-alias-powershell
Some helpfule powershell alias.## Steps
1. Create tools folder under c:
2. Add clean.ps1, find.ps1, and start-as-admin.ps1 in c:\tools.
3. in start-as-admin.ps1, update your credentials. //TODO: might be possible to use encrypted password since it's in risk of being exposed.
4. save profile.ps1 to `c:\windows\system32\windowspowershell\v1.0`
5. Restart your powershell## What's available
1. `find`: recursive search in a directory
2. `admin`: start following tools in admin mode:
1. `np`: notepad++
2. `code`: vscode
3. `wt`: windows terminal
4. `clean`: Deep clean of everything in a visual studio solution folder. Deletes `bin`, `obj`, `packages`, also cleans `temp` folders, and `nuget cache`.
5. `vs `: open solution in vs2022.
6. `vs19 `: open solution in vs2019.
7. `e`: Shortcut for explorer.
8. `passwd`: this saves the admin password in an encrypted file. Use the `-admin` switch to set the credential for the `admin` alias.