Last active
February 12, 2024 23:47
-
-
Save Kreijstal/ca5750b2dcbc446c4a0eb5f99a636bed to your computer and use it in GitHub Desktop.
install msys2, nvim and comfortable configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 | |
Set-ExecutionPolicy Bypass -scope Process -Force | |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force | |
irm get.scoop.sh | iex | |
#http://helloworldproject.blogspot.com/2021/01/setting-up-rust-on-windows-10-with.html | |
scoop install msys2 | |
ucrt64 -c "yes|pacman -Syuu" | |
ucrt64 -c "yes|pacman -Syuu" | |
ucrt64 -c "pacman -S pactoys openssh curl --noconfirm git vim" | |
ucrt64 -c (@" | |
ssh-keygen -A | |
sed -i '/UsePrivilegeSeparation /c\UsePrivilegeSeparation no' /etc/ssh/sshd_config | |
sed -i '/PasswordAuthentication /c\PasswordAuthentication yes' /etc/ssh/sshd_config | |
cygrunsrv -R msys2_sshd || true | |
cygrunsrv -I msys2_sshd -d "MSYS2 sshd" -p /usr/bin/sshd.exe -a "-D -e" -y tcpip | |
netsh advfirewall firewall delete rule name="mingw-sshd" | |
netsh advfirewall firewall add rule name="mingw-sshd" protocol=tcp localport=22 dir=in enable=yes action=allow | |
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply kreijstal | |
"@.split("`n") -join ";") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment