https://github.com/prplecake/dotfiles-windows
https://github.com/prplecake/dotfiles-windows
dotfiles
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prplecake/dotfiles-windows
- Owner: prplecake
- License: mit
- Created: 2025-06-07T19:40:37.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-07T19:40:44.000Z (about 1 year ago)
- Last Synced: 2025-06-17T05:12:30.952Z (about 1 year ago)
- Topics: dotfiles
- Language: PowerShell
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# windows-dotfiles
"dotfiles" for Windows. Plus some other useful things.
## Setup
Create the profile directory if it doesn't already exist:
```powershell
mkdir (Split-Path $PROFILE.CurrentUserCurrentHost) -ErrorAction SilentlyContinue
```
Change into that directory:
```powershell
cd (Split-Path $PROFILE.CurrentUserCurrentHost)
```
Clone the repo:
```powershell
git clone https://github.com/prplecake/windows-dotfiles .
```
## Custom Functions
### Get Public IP Address
```powershell
Get-IP
```
Returns your public IP address and nothing else.
### List empty directories
```powershell
List-EmptyDirs
```
Lists all directories under the current working directory that is
completely empty; i.e.: no folders or files. At this time this function
accepts no parameters.
### Monitor an HTTP Host
```powershell
Monitor-HttpHost -Uri [-SleepSeconds ]
```
#### Parameters
`-Uri`
Specifies a URI to monitor.
* **Type:** String
* **Position:** Named
* **Default value:** *None*
* **Accept pipeline input:** False
* **Accept wildcard characters:** False
`-SleepSeconds`
Specifies the number of seconds to wait before trying again. **Default:
15 seconds**.
* **Type:** Int32
* **Position:** Named
* **Default value:** 15
* **Accept pipeline input:** False
* **Accept wildcard characters:** False
### Open a URL in all browsers
Currently opens in Firefox, Chrome, Edge, and IE.
```powershell
Open-InAllBrowsers https://google.com
```
#### Parameters
`-Uri`
Specifies a URI to open in all browsers.
* **Type:** String
* **Position:** Named
* **Default value:** *None*
* **Accept pipeline input:** False
* **Accept wildcard characters:** False
### See why your computer last shutdown/restart
```powershell
Get-ShutdownReason
```
Example output:
```
Message: The process C:\WINDOWS\system32\svchost.exe (DELL-P7520-1) has initiated the restart of computer DELL-P7520-1 on behalf of user NT AUTHORITY\SYSTEM for the following reason: Operating System: Service pack (Planned)
Reason Code: 0x80020010
Shutdown Type: restart
Comment:
Date: 2020-10-30 19:43:02
```
### Add Sublime {Text 3,Merge} Context Menu Items

```powershell
Add-SublimeMergeContextMenu
Add-SublimeTextContextMenu
```
To run both at once:
```powershell
Add-SublimeContextMenus
```