Skip to content

Instantly share code, notes, and snippets.

@shakeel
Last active November 12, 2021 10:21
Show Gist options
  • Save shakeel/b4231ee6757ca523d265e1fbf5a5b258 to your computer and use it in GitHub Desktop.
Save shakeel/b4231ee6757ca523d265e1fbf5a5b258 to your computer and use it in GitHub Desktop.
How I setup Windows 10

Setup Windows 10

Use scoop to install all of the UNIX command line tools and most of my needed software tools.

powershell
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop bucket add versions
scoop install curl
scoop install openssh
[environment]::setenvironmentvariable('GIT_SSH', (resolve-path (scoop which ssh)), 'USER')
scoop install git
scoop install grep
scoop install concfg
concfg import solarized-dark
scoop install pshazz
# Opening PowerShell as Admin & running Set-Service ssh-agent -StartupType Manual
scoop install msys2
	msys2
	pacman -Syu
scoop install coreutils diffutils findutils tar zip unzip wget which less dd file sudo shim
scoop install graphviz
scoop install vim vimtutor
# Default vimrc created in ~/_vimrc
scoop install go
mkdir ~/go
scoop install sqlite
scoop install rust
scoop install python
scoop install nodejs
scoop install dart
scoop install ninja
scoop install gcc gdb llvm cscope cmake cppcheck
scoop install bazel
scoop install julia
scoop install qemu
scoop install haskell
scoop install chromedriver
scoop install docker
scoop install ghostscript
scoop bucket add java
scoop install oraclejdk8
scoop bucket add extras
scoop install idea
scoop install R rstudio
scoop install wireshark
@shakeel
Copy link
Author

shakeel commented Nov 16, 2018

pshazz and other git commands have issues with ssh-agent and powershell.

PowerShell/Win32-OpenSSH#1133

  1. Open powershell as administrator
  2. Check the current status of ssh-agent: Get-Service | select -property name,starttype
  3. Set the new type : Set-Service -Name ssh-agent -StartupType Manual
  4. Start it: Start-Service ssh-agent
  5. Add your key as before: ssh-add

Also make sure HOME environment variable is set to C:\Users\userid

@shakeel
Copy link
Author

shakeel commented Jan 10, 2019

I prefer to use OpenSSH installed by scoop instead of the default OpenSSH installed by Microsoft. You have to remove the Microsoft installed OpenSSH from PATH before following the above steps.

Whenever a new version of Windows 10 is released, it automatically adds OpenSSH to the PATH, so after every major upgrade, you have to remember to remove it from the PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment