Snapshot của felixrieseberg/windows-development-environment: 1.4k★ · PowerShell. :telescope: Turning Windows into an environment ready for modern development
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A fresh Windows isn't entirely ready for modern development, but all the tools you need are available. A good terminal, popular bash tools, Git, a decent package manager - when properly setup, modern development on Windows can be a lot of fun. In particular, this document outlines how to configure your Windows in such a way that it can easily handle most development tasks usually run on a Mac OS X or a Linux distro.
A Word about Ubuntu Linux on Windows
:point_up: While Bash on Windows isn't perfect yet, it's an amazing tool that can make development a lot easier - especially when you're dealing with Bash scripts, Ruby, or Ubuntu binaries. It's an amazing tool, but keep in mind that Git, Node, or Go are already pretty performant on Windows itself. However, they run just fine in Bash, so if you feel like moving most of your development over, go for it. Here's the how-to:
Ensure that you're running Windows 10 Anniversary Update (build 14311 and up)
Search for “Windows Features” and choose “Turn Windows features on or off” and enable Windows Subsystem for Linux.
To get Bash installed, open Command Prompt and type “bash”
Automate it!
Below, you can see the all the things I need to actually go and work on stuff. An opinionated version of the list below can be installed automatically thanks to the magic of Boxstarter. Check out the script to see what it runs. It's a trimmed down version of all the tools below, leaving out duplicate tools. As an example, it installs VS Code (and not Atom or Sublime) and Git (but not Subversion or Mercurial). Simply start PowerShell as Administrator and run:
Chocolatey is a powerful package manager for Windows, working sort of like apt-get or homebrew. Let's get that first. Fire up CMD.exe as Administrator and run:
Once done, you can install packages by running cinst (short for choco install). Most packages below will be installed with Chocolatey.
Terminal: Windows Terminal
These days, I just use Windows Terminal with oh-my-posh.
I used to use CMDer and Hyper, both powerful tools to do more command-line things with. They were great. I've personally moved on but you might enjoy the old-timers:
cinst microsoft-windows-terminal
cinst oh-my-posh
Even if you don't want to use either, you should enable your PowerShell to execute scripts. You're a developer - the terminal is your friend.
If you want to go even further, check out the attached PowerShell Profile in this repository. It's my personal one and might not be perfect for you, but it makes my personal life a lot easier. You can edit your PowerShell profile with your favorite editor by calling $PROFILE, so if you're using Visual Studio Code, call code $PROFILE (or vim $PROFILE - you get the idea).
PowerShell Profile
Now that you have a good terminal, you might wonder how you can beef it up. This isn't part of the automated setup, but I'm quite happy with my profile. I've changed my PowerShell in the following ways:
Add helper functions (uptime, reload-profile, find-file, unzip, and print-path)
Add equivalents for my favorite Unix commands (df, sed, sed-recursive, grep, grepv, which, export, pkill, pgrep, touch, sudo, pstree)
Add Git aliases (gc for git checkout, gp for git pull)
Set the default output to utf8
Increase the linme history to 10000
To edit your PowerShell profile, run notepad.exe $PROFILE (or use an editor of your choice). Then, replce it with this profile.
Node and npm
A bunch of tools are powered by Node and installed via npm. This applies to you even if you don't care about Node development. If you want to install tools for React, Azure, TypeScript, or Cordova, you'll need this.
cinst nodejs.install
Version Control: Git
Obviously. If you want Git to be able to save credentials (so you don't have to enter SSH keys / passwords every single time you do anything), use the git.install package, which also installs the Git Credential Manager for Windows. I add parameters I care about.
If you're using Mercurial or Subversion (you poor, poor thing), install with:
cinst subversion
cinst mercurial
Code Editors: Atom, Sublime, VS Code
I won't join the war debating which editor is the best, but if you're looking for an editor and not a full IDE, chances are that you'll end up using one of those three.
If you already own Visual Studio, you should obviously install the version you bought with your precious money. If you don't, do know that Visual Studio Community Edition is free (for most people).
If you have development needs that require an older version, Visual Studio 2015 Community Edition can be installed with this command:
cinst visualstudio2022community
Ruby
Even if you don't care about Ruby at all, bear in mind that it's preinstalled on OS X (and easy to install on Unix), so many dev tools might be trying to leverage it. For example, GitHub pages are compiled using Jekyll - if you want to get in on that, install Ruby.
cinst ruby
cinst ruby.devkit
Rust
Rust development on Windows is fantastic. I applaud the whole community for their cross-platform efforts. To get started, install rustup, the official installer for Rust. The easiest way to aquire it is to download it directly from the homepage.
rustup allows you to install so-called "Rust toolchains". I personally use the nightly one (because that's how I roll; but also, because many libraries require it):
From this point on forward, you can install additional Rust tools to make development easier with cargo.
Go
Sure, why not.
cinst golang
Python
Python is a complex world with a bunch of flavors, but Python 3 and pip should have you prepared for most things.
cinst python
cinst pip
Some older Node.js packages still require Python 2.7. Don't use this version unless you know you need it:
cinst python2
DevOps
This stuff is really only relevant if you're interested in DevOps - but if you are, you should probably install the stuff below. It's not likely that you need any of the things below unless you're directly working with it, because none of those things are expected to be installed on a Unix machine.
Docker, VirtualBox, Vagrant
If you want to run Docker machines and images, you might not need VirtualBox. In fact, installing VirtualBox on your system isn't always the best idea, given that it messes with a few system components.
Docker released a version for OS X and Windows that no longer requires VirtualBox to be installed - and instead uses the default Hypervisor that comes with the operating system (on Windows, that's Hyper-V). You can read more about it over in Docker's documentation.
cinst docker-desktop
SSH
If you installed CMDer or Gow as indicated above, you're already set - simply run ssh from CMD, CMDer, or PowerShell. If you haven't and you're running at least the Windows 10 Fall Creators Update, know that OpenSSH is now an official Windows feature. Install it from PowerShell with the following commands:
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
# The above command should return something that looks like this:
# Name : OpenSSH.Client~~~~0.0.1.0
# State : NotPresent
#
# Name : OpenSSH.Server~~~~0.0.1.0
# State : NotPresent
# Then, knowing the version numbers:
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Alternatively (and for older versions of Windows), install the official Microsoft port of OpenSSH directly:
cinst win32-openssh
Azure Cli
Super duper useful if you're working with Azure at all.
cinst azure-cli
AWS Cli
Super duper useful if you're working with Amazon Web Services at all.
cinst awscli
cinst awstools.powershell
Basic Tools
You'll recognize many of these names. Nothing here is crazy unique, it's just stuff you probably want installed to have a well-running machine.
cinst DotNet3.5 -- not needed on windows 8
cinst DotNet4.0 -- not needed on windows 8
cinst DotNet4.5 -- not needed on windows 10
cinst PowerShell -- not needed on windows 10
Remove unwanted packages
Windows comes with a bunch of Store apps you might not want.
Đọc thêm về felixrieseberg/windows-development-environment ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/felixrieseberg/windows-development-environment là nguồn chính thức.
felixrieseberg/windows-development-environment có bao nhiêu sao?
felixrieseberg/windows-development-environment có 1.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/felixrieseberg/windows-development-environment. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
felixrieseberg/windows-development-environment có phải mã nguồn mở không?
Có — felixrieseberg/windows-development-environment phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/felixrieseberg/windows-development-environment.
felixrieseberg/windows-development-environment có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho felixrieseberg/windows-development-environment. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
felixrieseberg/windows-development-environment là gì?
felixrieseberg/windows-development-environment (felixrieseberg/windows-development-environment) là dự án PowerShell trên GitHub. Theo mô tả gốc: :telescope: Turning Windows into an environment ready for modern development
Đọc đầy đủ README ở tab phía trên.
Chưa chắc windows-development-environment có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về windows-development-environment.