# My Shell Config On Windows For 2021

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](http://cmder.net/) in combination with Git Bash. 

### My Config for 2021

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: 
```yml
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

### Some suggestions to improve even more your shell

- 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/

--------

<span>Photo by <a href="https://unsplash.com/@hellomm?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">xiaokang Zhang</a> on <a href="https://unsplash.com/s/photos/shell-cmd?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span>
