Make your terminal look like 10x developer!
Tags: terminal, powershell, commandline, shell
Published: 2022-12-20 15:11:53

## My shell setup

![My Shell Setup](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ipy6x5awrvn6r8a9fgcv.png)

For up-to-date instructions please refer to: https://github.com/fluentmoheshwar/shell#readme

I'm super excited to share with you my awesome shell setup that makes my coding life so much easier and fun! 😍

All you need to do is clone this repo and run appropriate script. It will install everything you need in a snap (excluding terminal and nerd font).

Features:

- Command Completion with [PSReadLine](https://github.com/PowerShell/PSReadLine) and [PowerType](https://github.com/AnderssonPeter/PowerType)
- sudo on windows using [gsudo](https://github.com/gerardog/gsudo)
- Beautiful Prompt Using [starship](https://starship.rs)

## Installation

### Windows

Run windows.bat

### Linux

```bash
bash ./linux.sh
```

Note: Only Ubuntu LTS and it's derivatives is supported.

### Mac

Warning: This script isn't tested! I don't have a mac.

```bash
bash ./mac.sh
```

## Updating

use `git pull` and re-run appropriate script.


## Terminal Setup Instructions

You need to use one of these terminals: [Supported Terminals](https://github.com/tonsky/FiraCode#terminal-compatibility-list) You also need to use a [nerd font](https://www.nerdfonts.com/font-downloads). Trust me, you will love the icons and glyphs. 😎 Remember to set the nerd font and powershell as your default shell in your terminal. I'm showing setup instruction for Windows Terminal, Hyper and Visual Studio Code Integrated Terminal below.
I'm using Cascadia Code Nerd Font as example.

### Windows Terminal

Windows Terminal > Click on the arrow > Settings

![Settings in Windows Terminal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ir8pyhzen0xzkrs5i37n.png)

Set PowerShell as default shell and Windows Terminal as default terminal like below.

![PowerShell and Windows Terminal default](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3gamcrc7rdcy8625gl5x.png)

Go to Default > Appearance > Set your nerd font as default.

Restart terminal

### Hyper

Hyper>Edit>Preferences

![Settings in Hyper](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5zrhk6co3u5g6vnh4tpa.png)

Add the following to your hyper.js file

```javascript
module.exports = {
  config: {
    // Uncomment below for Linux/Mac
    // shell: '/usr/bin/pwsh',
    // Uncomment below for Windows
    // shell: 'C:\\Program Files\\PowerShell\\7\\pwsh.exe'
    fontFamily: "CaskaydiaCove Nerd Font Mono",
    disableLigatures: false,
  },
};
```


### Visual Studio Code Integrated Terminal

Click on the gear icon> Settings

![Settings in Vscode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f9in040f4y4l8sk1w2ce.png)

Click Open settings.json icon.

![settings.json in vscode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fibrgedixej7m3qx2mhh.png)

Add the following code in your settings.json file.

```json
{
  "terminal.integrated.defaultProfile.windows": "PowerShell",
  "terminal.integrated.defaultProfile.linux": "pwsh",
  "terminal.integrated.defaultProfile.osx": "pwsh",
  "terminal.integrated.shellIntegration.suggestEnabled": true,
  "editor.fontFamily": "CaskaydiaCove Nerd Font Mono"
}
```