./setup-
Set environment variables:
setx HOME %USERPROFILE% setx XDG_CONFIG_HOME "%USERPROFILE%\.config" -
When installing git scm be sure to check the 'Enable symbolic links' option.
-
When cloning this repo:
git clone -c core.symlinks=true git@github.com:darcyparker/dotfiles.gitIf you don't have the privilege to create symbolic links then you will need to run
cmd.exe,powershellorbashasadministratorso that symbolic links are created when cloning. -
Recommended:
If you don't have privilege to create symbolic links, using cygwin to run
setup.shis recommended because it will usecygstartto callmklinkas administrator for each link that needs to be created.
Setup cygwin to mount /home to $USERPROFILE:
mount -f "$USERPROFILE" ~
mount -m > /etc/fstabInstaller: https://msys2.github.io/ See https://sourceforge.net/projects/msys2/
See: http://stackoverflow.com/questions/24099179/msys2-does-not-source-profile/26554978#26554978
/etc/fstab needs to be edited in order for ~/.bash_profile to be sourced
after ~/etc/profile.
Example:
$ cat /etc/fstab
# For a description of the file format, see the Users Guide
# http://cygwin.com/cygwin-ug-net/using.html#mount-table
# DO NOT REMOVE NEXT LINE. It remove cygdrive prefix from path
none / cygdrive binary,posix=0,noacl,user 0 0
d:/Users/dparker /home/dparker ntfs binary,posix=0,user 0 0
Run setup.bat as administrator (because mklink.exe is needed to create
symbolic links to _vimrc, .vim, and .config/nvim.