Code Monkey home page Code Monkey logo

windows-setup's Introduction

Windows Environments Setup

Essential Apps

Install Scoop with PowerShell:

irm get.scoop.sh | iex
scoop install 7zip aria2 git pwsh sudo
scoop bucket add extras

Neovim

Install Neovim:

scoop install neovim

Also install Visual C++ Redistributable:

scoop install vcredist2015
scoop uninstall vcredist2015

Python

Download and install Miniforge3. No need to add PATH.

Initialize Conda, restart command prompt:

miniforge3\Scripts\conda.exe init

Update conda and brotli-python together due to this issue identified on 2023-06-08:

conda update -n base conda brotli-python
conda update -n base --all

Add miniforge3\condabin\venv.bat:

echo conda.bat activate .\.venv > miniforge3\condabin\venv.bat

Updated Conda solver to libmamba

conda install -n base conda-libmamba-solver
conda config --set solver libmamba

Create a virtual environment for Neovim pynvim:

conda create -n pynvim pynvim

Install Python Apps with pipx

Create a virtual environment for pipx:

conda create -n pipx pipx
pipx ensurepath

May need reboot to set PATH properly.

pipx install black
pipx install conda-lock
pipx install flake8
pipx install poetry
pipx install reorder-python-imports
pipx install yamllint

Personal Configs

dotfiles

https://github.com/LexSong/dotfiles

Neovim Configs

https://github.com/LexSong/nvim

System Tweaks

Remap Capslock to Ctrl Key

curl -O https://raw.githubusercontent.com/LexSong/windows-setup/master/CapslockToCtrl.reg
sudo reg import CapslockToCtrl.reg

Reboot for the above changes to take effect.

Enable Virtual Terminal

reg add HKEY_CURRENT_USER\Console /v VirtualTerminalLevel /t REG_DWORD /d 0x00000001 /f

See https://superuser.com/a/1300251 for more details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.