dotfiles/windows
2018-03-15 14:37:01 -04:00
..
bash_profile Big cleanup and more streamlined windows setup 2017-02-18 13:05:08 -05:00
bashrc Fix bug in windows bashrc 2017-08-10 11:46:46 -04:00
gitconfig.platform Update git config for Windows 2017-06-09 16:10:39 -04:00
inputrc Add an inputrc to windows dir 2017-06-10 16:48:16 -04:00
readme.md Update windows readme 2018-03-15 14:37:01 -04:00
symbolic-link.sh Add a script for generating symbolic links with msys 2017-08-28 00:54:15 -04:00

Windows Setup

  • Turn off hibernation

    • Open admin cmd prompt: powercfg.exe /hiberate off
  • Install Windows Defender

Enable security updates

If you don't have an antivirus program, or you do but it's not verified by Microsoft, then you will not receive security updates unless you set a key in the registry. Note that Windows Defender counts as a valid antivirus program.

Add the following registry key: Key="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat" Value="cadca5fe-87d3-4b96-b7fb-a231484277cc" Type="REG_DWORD” Data="0x00000000”

Configure Shell

  • Install MSYS2 w/ MinGW-w64 to C:\msys64
    • Open C:\msys64\mingw64.exe
    • Run pacman -S base-devel mingw-w64-x86_64-toolchain git bc
    • Use C:\Users\<user> as the terminal $HOME by editting C:\msys64\etc\nsswitch.conf and changing the db_home value to windows.
  • You may need to work around an issue with envsubst.exe - you'll know there's a bug if git displays "': not a valid identifierline 89: export: dashless" or rebase complains about "new_count".
  • Map caps to left-ctrl using https://sharpkeys.codeplex.com/
  • Symlink dotfiles to ~/.dotfiles with cmd //c 'mklink .dotfiles drive:\path\to\dotfiles'
  • Symlink files in the dotfiles windows folder using cmd //c 'mklink .some-file .dotfiles\some-file'
  • Symlink appropriate files in the root dotfiles directory
    • Ignore all zsh files
    • Don't symlink .vim folder because Plugged will fail to install the plugins. Just make a copy.

Setup dev tools

Compiling Vim

  • If for some reason you want to compile Vim on Windows, do the following:
    • Git clone vim from Github
    • cd vim/src
    • make -f Make_ming.mak ARCH=x86-64 OPTIMIZE=MAXSPEED STATIC_STDCPLUS=yes FEATURES=HUGE PYTHON="C:/Python27" PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON3="C:/Python3" PYTHON3_VER=361 DYNAMIC_PYTHON=yes

Setting up Vim

You have to make a copy of the vim folder. For some unknown reason the Plugged scripts don't work when running them on a symlinked .vim directory. Can also symlink most of the directories in the vim folder. You have to symlink using the full path instead of something like ~\.dotfiles\vim, otherwise it won't work. The full path is something like c:\users\michael\.dotfiles\vim. Be careful when removing symlinks as it will delete the linked source as well.

Setting up Cygwin

  • Can create symlinks to dotfiles using the git bash shell. The cygwin home directory is likely going to be C:\cygwin\home\<username>.
  • Build rlwrap

Setting up Clojure

Setup Xbox stuff

  • Install the xbox controller drivers
  • Turn off stats collection
    • cmd-r, msconfig.exe, startup tab, uncheck Microsoft Xbox 360 Accessories.

Turn off various startup processes

  • cmd-r, msconfig.exe, startup tab