Home

Awesome

<div align = "center"> <h1><a href="https://github.com/2kabhishek/win2k">win2k</a></h1> <a href="https://github.com/2KAbhishek/win2k/blob/main/LICENSE"> <img alt="License" src="https://img.shields.io/github/license/2kabhishek/win2k?style=flat&color=eee&label="> </a> <a href="https://github.com/2KAbhishek/win2k/graphs/contributors"> <img alt="People" src="https://img.shields.io/github/contributors/2kabhishek/win2k?style=flat&color=ffaaf2&label=People"> </a> <a href="https://github.com/2KAbhishek/win2k/stargazers"> <img alt="Stars" src="https://img.shields.io/github/stars/2kabhishek/win2k?style=flat&color=98c379&label=Stars"></a> <a href="https://github.com/2KAbhishek/win2k/network/members"> <img alt="Forks" src="https://img.shields.io/github/forks/2kabhishek/win2k?style=flat&color=66a8e0&label=Forks"> </a> <a href="https://github.com/2KAbhishek/win2k/watchers"> <img alt="Watches" src="https://img.shields.io/github/watchers/2kabhishek/win2k?style=flat&color=f5d08b&label=Watches"> </a> <a href="https://github.com/2KAbhishek/win2k/pulse"> <img alt="Last Updated" src="https://img.shields.io/github/last-commit/2kabhishek/win2k?style=flat&color=e06c75&label="> </a> <h3>Ultimate Dev Setup for Windows 🪟🪄</h3> <figure> <img src="images/screenshot.png" alt="win2k in action"> <br/> <figcaption>win2k in action</figcaption> </figure> </div>

win2k is a set of handcrafted configs for setting up a complete dev environment on Windows.

It makes developing on Windows much more pleasant for CLI lovers.

✨ Features

Setup

🚀 Installation

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install aria2 7zip git
git clone --recurse-submodules https://github.com/2kabhishek/win2k
cd win2k
.\setup.ps1

This will install all necessary packages, modules and setup symlinks for you.

If setup runs into errors, try running the command in admin mode again or run the command from setup.ps1 manually.

💻 Usage

Windows Terminal

If you are having issues starting up Windows Terminal after the setup, you can try removing the folder:

C:\Users\<your-user-name>\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState

Git

It is recommended to setup git and GitHub before anything else.

git config --global user.name "Your Name"
git config --global user.email "your@email.com"

git config --global commit.gpgSign false #Disable GPG signing

gh auth login #Login to github

If you want to use GPG signing check this

Neovim

Next I would recommend setting up nvim2k

git clone https://github.com/2kabhishek/nvim2k
New-Item -ItemType SymbolicLink -Path "$env:LOCALAPPDATA\nvim" -Target "$PWD\nvim2k" -Force

PowerToys

I recommend using PowerToys to add some keybindings using the Keyboard Manager, for example:

I also use the PowerToys Run launcher mapped to <kbd>Win</kbd> + <kbd>Space</kbd>

Tiling

Run StartTiling/StopTiling on a Powershell prompt to control tiling.

Status Bar

You can use yasb to show a status bar, similar to polybar. Follow instructions on yasb to set up.

My yasb configs are here

Fonts

If you want to try out other fonts, you can also use oh-my-posh to install fonts

Just run oh-my-posh font install in an Admin window and select the font of your choice.

More Tools

I have intentionally kept the default list of packages to bare essentials.

If you want any other tools you can install them with scoop or winget.

# Install VS Code
scoop install code
# Install winget
scoop install winget

You can also search for packages using scoop search name.

Other Configs

For most tools I'm symlinking configs over from my main dots2k.

You can do the same or plugin your own.

Behind The Code

🌈 Inspiration

I find working on Windows somewhat unpleasant, WSL although tries and fixes it, but it felt constrained.

That's why I decided to set up a dev environment using native windows tooling.

💡 Challenges/Learnings

🧰 Tooling

<hr> <div align="center">

<strong>⭐ hit the star button if you found this useful ⭐</strong><br>

<a href="https://github.com/2KAbhishek/win2k">Source</a> | <a href="https://2kabhishek.github.io/blog" target="_blank">Blog </a> | <a href="https://twitter.com/2kabhishek" target="_blank">Twitter </a> | <a href="https://linkedin.com/in/2kabhishek" target="_blank">LinkedIn </a> | <a href="https://2kabhishek.github.io/links" target="_blank">More Links </a> | <a href="https://2kabhishek.github.io/projects" target="_blank">Other Projects </a>

</div>