Important
Please just use this as reference. My installation may not work (because I haven't tested yet). Just go and grab the config you like.
SELECT | SHOWN |
---|---|
Note
Using FZF if installed. Work even without FZF but I'm lazy to show.
PM | UPGRADE | UNINSTALL |
---|---|---|
SCOOP | ||
CHOCO |
Note
Mange via Package Managers (Scoop isn't PM btw :v)
Important
Need FZF
fzf | fd |
---|---|
ripgrep | fzf |
---|---|
Note
These come from fzf advanced integration but in Powershell
The config is in Documents/PowerShell/Scripts/kevinnitro/fzf.ps1
- Bonus: yazi and cd
- SSH (Admin)
Set-Service ssh-agent -StartupType Automatic Start-Service ssh-agent ssh-add "$env:USERPROFILE/.ssh/id_ed25519"
- Import GPG Keys (use builtin GPG from git):
git bash gpg --import public.gpg gpg --import secret.gpg gpg --edit-key KevinNitroG trust 5 y quit
In order to encrypt / decrypt chezmoi
- Set execution policy to run script from URL (non-admin)
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
- Install prequisite scoop (non-admin)
iwr "https://raw.githubusercontent.com/KevinNitroG/windows-dotfiles/main/dot_install/prerequisiteScoop.ps1" | iex
- Install prequisite choco (admin)
iwr "https://raw.githubusercontent.com/KevinNitroG/windows-dotfiles/main/dot_install/prerequisiteChoco.ps1" | iex
Important
Use powershell IDE (not pwsh also), don't use Windows Terminal.
Run with Administrator
chezmoi init --apply --verbose git@github.com:KevinNitroG/windows-dotfiles.git
Follow instruction of chezmoi to setup chezmoi config
iwr "https://raw.githubusercontent.com/KevinNitroG/windows-dotfiles/main/dot_install/environmentVariables.ps1" | iex
- Install programming languages
iwr "https://raw.githubusercontent.com/KevinNitroG/windows-dotfiles/main/dot_install/programmingLanguage.ps1" | iex
- Install softwares (non-admin)
iwr "https://raw.githubusercontent.com/KevinNitroG/windows-dotfiles/main/dot_install/softwares-nonadmin.ps1" | iex
- Install softwares (admin)
iwr "https://raw.githubusercontent.com/KevinNitroG/windows-dotfiles/main/dot_install/softwares-admin.ps1" | iex
- codelldb / cpptools
- debugpy
- js-debug-adapter
- actionlint
- cpplint
- markdownlint
- ruff
- markdown-toc
- markdownlint
- prettier
- ruff
- shfmt
- stylua
:TSInstall powershell
:MasonInstall powershell-editor-services
Note
This script merges above steps. But haven't been tested yet. Go import SSH and GPG keys first.
It may not work =))
- Set execution policy to run script from URL (non-admin)
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
- Run script (non-admin)
iwr "https://raw.githubusercontent.com/KevinNitroG/windows-dotfiles/main/dot_install/install.ps1" | iex
curl https://gist.githubusercontent.com/MuhammadSaim/de84d1ca59952cf1efaa8c061aab81a1/raw/rarreg.key | Out-File -FilePath "C:\Program Files\WinRAR\rarreg.key" -Force
- Close source tool from repack.me by Alexey1980
- Download tool
Note
Password is inside the archived file
- Patch script
iex(irm is.gd/idm_reset)
- Disable check for update
HKEY_CURRENT_USER\Software\DownloadManager
CheckUpdtVm
:10
->0
- Block host (admin)
v "C:\Windows\System32\drivers\etc\hosts"
+ 127.0.0.1 tonec.com + 127.0.0.1 www.tonec.com + 127.0.0.1 registeridm.com + 127.0.0.1 www.registeridm.com + 127.0.0.1 secure.registeridm.com + 127.0.0.1 internetdownloadmanager.com + 127.0.0.1 www.internetdownloadmanager.com + 127.0.0.1 secure.internetdownloadmanager.com + 127.0.0.1 mirror.internetdownloadmanager.com + 127.0.0.1 mirror2.internetdownloadmanager.com + 127.0.0.1 mirror3.internetdownloadmanager.com
-
Install: OTP Ladian
-
Active
irm https://massgrave.dev/get | iex
- SpotX
# main iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1') } -new_theme" # mirror iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -m -new_theme"
Note
Those are extensions which aren't in webstore and have to be installed manually.
- Change ownership of old folders / files
- Install Cursor
- Change
Downloads
,Desktop
,... location - Symlink
git folder
(admin)New-Item -Path gits -ItemType SymbolicLink -Value E:\Git-Repo
- Restore Powertoys settings
- Winaero-tweaker
- Disable Windows Defender
- Disable Shortcut Arrow
- VisualCppRedist AIO
- EVKey / Unikey
- Wakatime CLI (Required by Terminal Powershell):
pip install wakatime
- Wakatime for Office
- Chrome flags
- MathType
- Spotify
v $env:USERPROFILE\AppData\Roaming\Spotify\prefs
+storage.size=500
- Windows Settings
- Wallpaper: https://github.com/DenverCoder1/minimalistic-wallpaper-collection
- Touchpad Gestures (3 & 4 fingers)
- DNS from NextDNS (https://router.nextdns.io/?limit=50&stack=dual):
- IPv4
103.186.65.82
https://greencloud-sgn-1.edge.nextdns.io/
38.60.253.211
https://lightnode-sgn-1.edge.nextdns.io/
- IPv6
2400:6ea0:0:1236::d6e2
https://greencloud-sgn-1.edge.nextdns.io/
2606:4700:4700::1111
https://cloudflare-dns.com/dns-query
- Power & Sleep
- Print Screen button with snipping tool
- Make Windows to use UTC time in order to dual boot with Linux
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f
- Keyviz (Already install from PM)
- Optimizer
- Winutil
irm https://christitus.com/win | iex
- iSlide
- 3UTools
- qBittorrent (qt6)
- OBS Background Removal
- Keystore Explorer
- Minecraft: Legacy Launcher
- Microsoft Teams
- MPC - HC
- ViveTool
vivetool /disable /id:42354458 # Disable desktop switch animation
- Lua 5.1 for Windows (for LazyNvim)
Just something that I often forget
IDA_RSA
public keyssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDap/5GnLxYYNJ2QB1rYRgXyHLQud0L3Y6sfiPL6iAdqZRm+f+006DeZtJ4oP2IN8oS6nF6tfWhCaQ91jv3fZWO+olhyBZulSGbb75WdcqLcctfDwc9er+BZZZMBsF0inEbCgHEooo5kelkuuPIEUmeqn9ozUtQ4A6mLIurjsGfy2nD2bCjYys3UxUa09xEiQxvgHnlvSPCh9XvG1h4eX611GI6EbtJoOvzFPYzaxdNosbombq1HMnNGXk3TMS9fghE1GjnMiBbrortGn6mT0aNi//N9Wgr9AYR0dY2BWk1CZXF78G4MWZoaLOLW5sriMjU881UbfmJx6MmvMAEHDrfJDIQAIoRsjAJbw00SoZjspEg3R8f8ekNjduzikG65noMJGd+jTD7MtBDe+YNCuZp6UQAPwbPQLtlbKOysEWzPupKMHIsPkzUJpdYp1ML1ljV/q+FLRKje4FvWUKTk8KekWxp2tUyn5gWUIrG7DGkE5MKpBp0njFJ17n8H81xQJs= [email protected]
ID_ED25519
public keyssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGmsTFqYpEvaJbMm6PSN2pH4JY0Whrd1F3jkP9OCcrWF [email protected]
- Export keys
# Public key gpg --output kevinnitro-public-gpg-key.pgp --armor --export trannguyenthaibinh46@gmail.com # Secret key gpg --output kevinnitro-secret-gpg-key.pgp --armor --export-secret-key trannguyenthaibinh46@gmail.com
- Import (for both public and secret keys)
gpg --import the-key.gpg
- Start GPG agent (set a task schedule to trigger on log on)
gpgconf --launch gpg-agent
- May want to trust a key
gpg --edit-key {key-id} trust 5 quit
- Open registry
- Goto:
Computer\HKEY_CURRENT_USER\Software\Classes\BraveFile\shell\open\command Computer\HKEY_CURRENT_USER\Software\Classes\BraveHTML.{...}\shell\open\command
- Change:
"C:\Users\{user}\scoop\apps\brave\current\brave.exe" --user-data-dir="C:\Users\{user}\scoop\apps\brave\current\User Data" --single-argument %1
C:\Users\kevinnitro\scoop\apps\pwsh\current\install-file-context.reg
C:\Users\kevinnitro\scoop\apps\pwsh\current\install-explorer-context.reg
- View system variables
[System.Environment]::GetEnvironmentVariable($KEY, [System.EnvironmentVariableTarget]::Machine)
- View user variables
[System.Environment]::GetEnvironmentVariable($KEY, [System.EnvironmentVariableTarget]::User)
- Set system variables
[System.Environment]::SetEnvironmentVariable($KEY, $VALUE, [System.EnvironmentVariableTarget]::Machine)
- Set user variables
[System.Environment]::SetEnvironmentVariable($KEY, $VALUE, [System.EnvironmentVariableTarget]::User)
VARIABLE | PATH |
---|---|
APPDATA |
C:\Users\kevinnitro\AppData\Roaming |
HOMEDRIVE |
C: |
USERPROFILE |
C:\Users\kevinnitro |
HOMEPATH |
\Users\kevinnitro |
LOCALAPPDATA |
C:\Users\kevinnitro\AppData\Local |
PROGRAMDATA |
C:\ProgramData |
PROGRAMFILES |
C:\Program Files |
PROGRAMFILES(X86) |
C:\Program Files (x86) |
SYSTEMROOT |
C:\Windows |
TEMP & TMP |
C:\Users\kevinnitro\AppData\Local\Temp |
USERDOMAIN |
DESKTOP-7QJ8Q7V |
USERNAME |
kevinnitro |
WINDIR |
C:\Windows |
More reference: Complete List of Environment Variables in Windows 10
- Program shortcut:
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
- Datetime format
- CLSID Key (GUID) Shortcuts List for Windows 10
- Shell Commands List for Windows 10
- Rundll32 Commands List for Windows 10