My Shell Config On Windows For 2021

Curious software engineer
Search for a command to run...

Curious software engineer
No comments yet. Be the first to comment.
In this series, I will treat subjects related to software development, software engineering, and related career.
The genesis
It’s the summer holidays, after all. So I wanted to spent some time with my 7 years old daughter to teach her programming. ⌨️ I spent some time before discussing with her some of the basics concept verbally: the different parts of a computer, and bas...

This article is a follow up on my previous one introducing the concept of SE Spectrum: https://sonny.alvesdi.as/a-better-way-to-discuss Existing solutions For long, the easiest way to run a spectrum was to use visual drawing or diagram tools like ...

Introduction to SE Spectrum

One of the greatest tool available on GitHub is Dependabot. For those not familiar with it, in short it's a bot reviewing your list of dependencies and proposing PRs to update them. https://docs.github.com/en/code-security/getting-started/dependabot-...

Photo by Harli Marten on Unsplash As long as I remember I have always been interested by skepticism. And I think one element that really resonated with me has been that conference talk by Phil Plait: https://www.youtube.com/watch?v=FrFRbGjUtJk 15 ...

If there's something I always liked in Linux is the shell! Windows has for too long been awful on that front.
Nowadays on Windows, there are several solutions: PowerShell, Linux Subsystem, Git Bash, Cygwin, etc.
For several years I was using cmder in combination with Git Bash.
But for 2021 I decided to switch to Alacritty https://github.com/alacritty/alacritty! And it's been great so far!
While cmder had GUI, tabs, and a lot of options, Alacritty is just straightforward and super performant.
To configure alacritty everything happens in its config file that you need to create yourself there: %APPDATA%/Roaming/alacritty/alacritty.yml.
For your reference is my alacritty config file:
selection:
save_to_clipboard: true
shell:
program: "C:\\Program Files\\Git\\bin\\bash.exe"
save_to_clipboard is meant to activate the automatic copy in the clipboard of the text selection in the console window.
shell section is meant to define what shell to use in the console, and here I use Git Bash
If you want to use a modern font for your shell that has ligatures, check out: https://github.com/tonsky/FiraCode
Also if you want an easy way to install and uninstall software from the command line in Windows, check out https://chocolatey.org/
Photo by xiaokang Zhang on Unsplash