https://github.com/markwragg/powershell-mactools
Various PowerShell functions that are probably only useful to me specifically on my Mac.
https://github.com/markwragg/powershell-mactools
Last synced: 11 months ago
JSON representation
Various PowerShell functions that are probably only useful to me specifically on my Mac.
- Host: GitHub
- URL: https://github.com/markwragg/powershell-mactools
- Owner: markwragg
- Created: 2018-08-14T08:14:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-25T15:00:38.000Z (over 6 years ago)
- Last Synced: 2025-01-17T15:24:58.672Z (over 1 year ago)
- Language: PowerShell
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# PowerShell-MacTools
Various PowerShell functions that are probably only useful to me specifically on my Mac.
## Cmdlets
A full list of cmdlets in this module is provided below for reference. Use `Get-Help ` with these to learn more about their usage.
Cmdlet | Description
------------------| -------------------------------------------------------------------------------------------------------
Set-Proxy | Can be used to set the System and Git HTTP and HTTPS Proxy setting to a specified server and port, or if you provide an array of server:port strings, will test each in turn and set the proxy to the first to respond (this requires PS 6.1+ on Mac). If none respond, the proxy is unset.
Remove-Proxy | Can be used to unset the System and Git HTTP and HTTPS Proxy settings.
Disable-GitConfig | Renames the .gitconfig file in your home directory to .gitconfig.disabled. Useful because I have Git proxy settings for work that do not work at home.
Enable-GitConfig | Renames the .gitconfig file in your home directory back to .gitconfig.
Rename-ToLower | Renames a file to the same name but all lowercase. Just to make it easier to navigate case sensitive filesystem.