/dotfiles

Primary LanguageLua

dotfiles

WSL

If WSL has not already been installed:

  1. Follow instructions here
  2. install windows terminal, edit settings to remove ctl-c and ctl-v bindings
  3. setup git credentials
git config --global credential.helper '/mnt/c/Program Files/git/mingw64/libexec/git-core/git-credential-manager.exe'
  1. Follow these instructions to get Arch
  2. install my standard packages:
pacman -S --needed $(comm -12 <(pacman -Slq | sort) <(sort pkglist.txt))
  1. Add sudo
useradd -m -G wheel -s /usr/sbin/zsh nick
  1. modify sudoers to include wheel group (by typing visudo), uncomment line near end
EDITOR=nvim visudo
  1. if you have configured the default user (per instructions above in boostrap), then relogin by closing the window and typing in powershell
wsl --terminate arch

and then start Arch again, you should be logged in as the configured user 7. install yay

  1. install foreign packages from list (may need to su to new user first)
yay -S --needed - < pkglist.txt 

zsh

Add some handy scripts by symlinking the bin dir:

ln -nfs ~/dotfiles/bin ~/.local/bin

Instead of symlinking, just add the following line to ~/.zshrc:

source ~/dotfiles/zsh/zshrc
PATH="$PATH:$HOME/.local/bin

neovim

I've started using lazyvim. Config is done by editing files in ~/.config/nvim/lua/config/.lua. Plugins are loaded from files found in ~/.config/nvim/lua/plugins/.lua. To load the config, first get rid of any old configs:

mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak

Then symlink the new config:

ln -nfs ~/dotfiles/nvim ~/.config/nvim

platformio

MOOSE