https://github.com/sebagomez/psutils
PowerShell utilities to be used as Linux commands
https://github.com/sebagomez/psutils
Last synced: 2 months ago
JSON representation
PowerShell utilities to be used as Linux commands
- Host: GitHub
- URL: https://github.com/sebagomez/psutils
- Owner: sebagomez
- Created: 2023-11-09T12:58:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-10T14:47:07.000Z (over 1 year ago)
- Last Synced: 2024-10-29T16:21:39.522Z (7 months ago)
- Language: PowerShell
- Size: 144 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PowerShell Utils
Moving from Mac to Windows I missed a lot of the tools and commands I used regularly. PowerShell has definetely made things a lot better for Windows users, but it's not quite there.
## Environment Variables
Even though I do it quite often, every time I need to create an environment variable, I have to google it, google how to see them, and google how to remove one. For some reasong those PowerShell commands don't stick in my head; let's be honest, `export`, `env` and `unset` are way easier to remember.
This is where I plan to add those commands (probably a very simplified version of them) and I will publish them as [scoop](https://scoop.sh/) packages.
### Commands
- `export =`: sets a local environment variable
- `env [variable]`: if a variable is passed it'll show you the value of it, if not, it'll list all of the current environment variables set.
- `unset `: removes the environment variablehttps://github.com/sebagomez/PSutils/assets/1637983/6eaf6bff-e338-4dfa-b497-1c20ae8b99e5
### How to install these commands
These commands are available for [Scoop](https://scoop.sh/). Scoop is a great package manager that for some reason it beat, IMHO, the good old Chocolatey and Microsoft's own winget.
To use these commands you need to first add my bucket as a source in your local scoop installation.
```pws
scoop bucket add sebagomez https://github.com/sebagomez/scoopbucket
```Now you're ready to install any of these packages. If you want to install `export` for instances, just run the following command.
```pws
scoop install sebagomez/export
```The list of available commands at any time is at https://github.com/sebagomez/scoopbucket/tree/master/bucket