Giter Site home page Giter Site logo

linux-like-windows-terminal's Introduction

Windows Terminal with Bash (or ZSH) and Starship

Jealous of Linux users?

Want an awesome-looking CLI on Windows?

Follow this guide to get a final result like this.

Install Windows Terminal

First of all you need a terminal capable of rendering fonts properly.

Install Windows Terminal from the Microsoft Store or from their GitHub repository.

Install Git Bash

Next you need bash. I personally use Git Bash as it comes with Git preinstalled.

Install Git and make sure to include the Git Bash in the installation process.

Install a Suitable Font (Required)

Go to Starship's installation guide and follow the steps for installing a font. I recommend FiraCode Nerd Font Mono.

This step is not optional.

Configure Windows Terminal

In your Windows Terminal, open up the settings.json.

Set defaultProfile to the following.

"defaultProfile": "{00000000-0000-0000-0000-000000012345}",

Add the following profile to profiles.list.

Set fontFace to the name of the font you installed.

{
	"acrylicOpacity": 0.75,
	"background": "#000000",
	"closeOnExit": true,
	"colorScheme": "GitBash",
	"commandline": "\"%PROGRAMFILES%\\git\\bin\\bash.exe\" --login -i -l",
	"cursorColor": "#FFFFFF",
	"cursorShape": "bar",
	"fontFace": "FiraCode Nerd Font Mono",
	"fontSize": 10,
	"guid": "{00000000-0000-0000-0000-000000012345}",
	"historySize": 9001,
	"icon": "%userprofile%\\.config\\terminal.ico",
	"name": "Git Bash",
	"padding": "0, 0, 0, 0",
	"snapOnInput": true,
	"useAcrylic": true
},

Set schemes to the following.

"schemes": [
	{
		"name": "GitBash",
		"background": "#000000",
		"black": "#0C0C0C",
		"blue": "#6060ff",
		"brightBlack": "#767676",
		"brightBlue": "#3B78FF",
		"brightCyan": "#61D6D6",
		"brightGreen": "#16C60C",
		"brightPurple": "#B4009E",
		"brightRed": "#E74856",
		"brightWhite": "#F2F2F2",
		"brightYellow": "#F9F1A5",
		"cyan": "#3A96DD",
		"foreground": "#bfbfbf",
		"green": "#00a400",
		"purple": "#bf00bf",
		"red": "#bf0000",
		"white": "#ffffff",
		"yellow": "#bfbf00",
		"grey": "#bfbfbf"
	}
]

Save the file. If you get a warning or error it's alright. Just make sure the data entered doesn't get changed.

Download the Windows Terminal icon and place it in C:/Users/Username/.config named terminal.ico.

Install Starship

Reopen Starship's installation guide if you closed it.

Reopen your Windows Terminal. It should open straight to Git Bash.

Run the shell command the guide gives you to install Starship, but add -- --bin-dir ~/.config/starship to the end of the command to install it in C:/Users/Username/.config/starship.

Installing ZSH (Optional)

Installing ZSH requires downloading ZSH from here and extracting the contents into C:/Program Files/Git.

The easiest way to extract the archive is by using PeaZip.

You can use vanilla ZSH or almost any framework you choose, but I recommend Zsh IMproved FrameWork.

Adding Starship (and ZSH)

Bash

In C:/Users/Username/.bashrc, add the following to the end.

eval "$(starship init bash)"

ZSH

In C:/Users/Username/.bashrc, add the following to the end.

if [ -t 1 ]; then
exec zsh
fi

In C:/Users/Username/.zshrc, add the following to the end.

eval "$(starship init zsh)"

Personal Final Touches

Configure your VSCode to run Git Bash by default instead of Powershell, use the font you installed, and use UTF-8 encoding.

linux-like-windows-terminal's People

Contributors

imgbotapp avatar kyza avatar ruthenic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

linux-like-windows-terminal's Issues

Uses OMZ

Windows is already slow enough, why make it slower with ohmyzsh?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.