Here are some basic tips & tricks for setting up a windows based developer workstation.
See https://chocolatey.org/install
Why prefer choco
over winget
?
Pro:
choco
has good documentation pages for most of the packages describing e.g. configuration parameters- some packages are newer compared to winget (e.g. Gnu make)
Con:
- extra installation of choco required. (winget is built-in by default)
choco install git.install --params "/NoShellIntegration"
See https://community.chocolatey.org/packages/git for more parameters
winget install --id Git.Git
Use the --override
parameter to customize your setup
Generate a ssh key with no passphrase
cd ~/.ssh
mkdir git
ssh-keygen -f git/id_rsa -N ''
Now you have to add the just generated public key to your GitLab account.
This will tell git to use the new identity-file when accessing our internal Gitlab
# With powershell:
cd ~/.ssh;
@"
Host gitlab.mdctec.com
Hostname gitlab.mdctec.com
User git
IdentityFile $((Get-Item ./git/id_rsa).FullName.Replace('C:','/C').Replace('\','/'))
"@ > config;
# enable git autocompletion for powershell
PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force
Add-PoshGitToProfile
# enable docker autocompletion for powershell
Install-Module DockerCompletion -Scope CurrentUser -Force
Add-Content $PROFILE "`nImport-Module DockerCompletion"