An open API service indexing awesome lists of open source software.

https://github.com/prplecake/dotfiles-windows


https://github.com/prplecake/dotfiles-windows

dotfiles

Last synced: about 2 months ago
JSON representation

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

![Sublime Context Menu Items](https://drop.jrgnsn.net/oqlX.png)

```powershell
Add-SublimeMergeContextMenu
Add-SublimeTextContextMenu
```

To run both at once:

```powershell
Add-SublimeContextMenus
```