Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doitian/dotfiles-windows
https://github.com/doitian/dotfiles-windows
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/doitian/dotfiles-windows
- Owner: doitian
- Created: 2020-06-09T12:56:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-14T15:18:24.000Z (7 months ago)
- Last Synced: 2024-04-14T18:13:09.934Z (7 months ago)
- Language: PowerShell
- Homepage:
- Size: 221 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Windows Dotfiles
## Setup
Save this repo as `Documents\PowerShell`.
┌ 1. Use English as Windows Display Language
┌ 2. Create Junctions if Using D:\ as data disk
```powershell
cd ~
New-Item -ItemType Junction -Path Documents -Value "D:\Documents"
New-Item -ItemType Junction -Path Desktop -Value "D:\Desktop"
New-Item -ItemType Junction -Path Downloads -Value D:\Downloads
New-Item -ItemType Junction -Path codebase -Value D:\codebase
```┌ 3. Install scoop
Customize location
```powershell
$env:SCOOP = "D:\scoop"
# or use default $env:SCOOP = "$HOME\scoop"
[environment]::setEnvironmentVariable("SCOOP", $env:SCOOP, "User")
```Install
```powershell
iwr -useb get.scoop.sh | iex
```Install essential apps
```powershell
scoop bucket add extras
scoop install mingit gpg zoxide starship less wsl-ssh-pageant
Install-Module -Name PSFzf -Scope CurrentUser
Install-Module -Name cd-extras -Scope CurrentUser
```Fix the gpg bug by creating a link
```powershell
New-Item -ItemType Junction -Path D:\scoop\persist\gpg\gnupg -Value D:\scoop\persist\gpg\home\
```┌ 4. Run as user
```powershell
./pre-setup
```Restart the terminal app and continue. The script requires [PowerShell 7](https://github.com/PowerShell/PowerShell/releases).
```powershell
./setup
```┌ 5. Run as admin
```powershell
./admin-setup
```Restart
## Proxy
Start proxy first. Then configure proxy in system settings and:
```
scoop config proxy 127.0.0.1:7890
git config --global http.proxy http://127.0.0.1:7890
```