1. Install Git-sdk-windows
- Install into
\\%USERPROFILE%\\Git
to avoid problems with white space - run
setup-git-sdk.bat
in the 7zip file in a cmd shell. - Run
pacman -S man-db
and any other additional packages. Also runmandb -cd
post install - Add path for git and git-core, e.g.
~/Git/usr/bin
and~/Git/mingw64/libexec/git-core
into Windows Path - Run
git config --global credential.helper manager
to activate GCM. Test bygit config --list
, look forcredential.helper=manager
. You may need to install GCM firstpacboy sync git-credential-manager:x
- Copy
dotfilesgit
folder to~
, check that dotfiles like.bashrc
and especially.git-prompt.sh
are in the root folder. - If this is a first install, run this script to create symlinks to dotfiles and git p4merge wrapper tools:
. ~/dotfilesgit/install.bash
- Install [p4merge visual merge tool](https://www.perforce.com/product/components /perforce-visual-merge-and-diff-tools)
- Download only the visual merge tool
- Check that
C:\Program Files\Perforce
is in PATH - run
install.bash
script and check thatextMerge
andextDiff
is in/usr/local/bin
after running script
3. Set up dropbox remote for git
- Install git dropbox helper
pip install git-remote-dropbox
- Create an Oauth2 token on Dropbox API developer console,
and save as ".git-remote-dropbox.json" in
dotfilesgit\dotfiles
folder where a symlink script will link it to home folder - connect to a repository, e.g. if dropbox repo is
dotfilesgit
- cd to home, then
git clone "dropbox://dotfilesgit"
- cd to the
dotfilesgit
folder,git checkout master
to make working dir visible
- If ConEmu is not installed,
choco install conemu
or download the full packages - Import
conemu.xml
, check in Tasks for Startup that Anaconda2 is callled correctly
-
Copy
posh-git
folder to%USERPROFILE%
to enable poshgit -
alternatively
git clone https://github.com/dahlbyk/posh-git.git
into the%USERPROFILE%
folder -
my Powershell $Profile has hardcoded location for
posh-git
as$env:USERPROFILE\posh-git
-
Install Powershell community extensions -
choco install pscx
-
Set up
$Profile
Set-ExecutionPolicy RemoteSigned New-Item -path $profile -type file -force
-
Create a symlink for powershell
$PROFILE
todotfilesfit
folders
new-symlink $HOME\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 $HOME\dotfilesgit\powershell\Microsoft.PowerShell_profile.ps1
- Install chocolatey with:
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
6. Install Miniconda
- Preferably install to ~/Anaconda2
- In the conda cmd shell, update the root environment to that defined by
.cmd/environment.yml
conda env update -n root -f environment.yml
- cp
./cmd/activate.bat
and./cmd/deactivate.bat
into~\Anaconda2\Scripts
and.cmd/alias.cmd
into~
- Do not forget to add in
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
with value%USERPROFILE%\alias.cmd
- Also add putty and putty key (priv.ppk), dont forget to set auto-login as root under 'Connection->Data' and save session as "nas" to match Conemu startup tasks. Check that System Enviroment Variables (in Powershell
$Env:path
orGet-PathVariable
if PSCX is installed)