Skip to content

run2cmd/dotfiles

Repository files navigation

run2cmd dotfiles

This is my personal configuration that I use to work day to day. My setup is Windows OS + WSL2(ArchLinux). My setup mostly resides in WSL but there is some Windows integration is use, however it is WSL2 based and only few tools are on Windows so this solution in 100% compatible with any Linux setup.

Workflow 3.0

I'm doing devops(ich) work so my environment is setup to support multiple tools. Use your favorite terminal but multiplexing is mostly done in tmux with NeoVim as main editor.

Installation

Install ArchLinux

# In CMD
wsl --install archLinux

# In WSL
pacman -Syu
pacman -Sy sudo git openssh less diffutils
useradd -m -aG wheel username

# in CMD
wsl --manage archlinux --set-default-user username

Clone this project into WSL2 instance and run following commands

install.sh
dotfiles-update all

It is Arch Linux optimized.

Optimize WSL disk space

This is useful if any of WSL instances reserves a lot of space that was used in the past. Run in PowerShell:

# vhdx-path:
# - Docker = C:\Users\[user_name]\AppData\Local\Docker\wsl\data\ext4.vhdx
# - ArchLinux = C:\Users\[user_name]\AppData\Local\Packages\[look something with arch]\LocalState\ext4.vhdx
optimize-vhd -Path [vhdx-path] -Mode full

MTU fix for VPN

Useful in case of VPN restrictions. Add following to ~/.bashrc:

# Fix for VPN
if ip addr | grep eth0 | grep -q 1500 ;then ~/bin/vpnfix ; fi

Remap caps lock as ctrl on windows

You need to edit/add Scancode Map Binary key in registry (regedit) path Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout and set it to following value:

00 00 00 00 00 00 00 00
03 00 00 00 1D 00 3A 00
3A 00 00 00 00 00 00 00

About

My dotfiles and environment setup.

Resources

Stars

Watchers

Forks

Packages

No packages published