Skip to content

Instantly share code, notes, and snippets.

@binura-g
Last active November 8, 2023 00:54
Show Gist options
  • Save binura-g/d3c798d84354183369b00cbd1959b7e8 to your computer and use it in GitHub Desktop.
Save binura-g/d3c798d84354183369b00cbd1959b7e8 to your computer and use it in GitHub Desktop.
WinTerminal Setup (2023)

image

1. Install powerline for Git Bash

Ref: https://github.com/diesire/git_bash_windows_powerline

cd $HOME
mkdir -p .bash/themes/git_bash_windows_powerline
git clone https://github.com/diesire/git_bash_windows_powerline.git .bash/themes/git_bash_windows_powerline

Add theme to ~/.bashrc

THEME=$HOME/.bash/themes/git_bash_windows_powerline/theme.bash
if [ -f $THEME ]; then
   . $THEME
fi
unset THEME

2. Install a patched nerd font

Recommended: https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/JetBrainsMono/NoLigatures/Regular

2. Add custom theme to windows terminal under 'schemes[]'.

{
  "background": "#000000",
  "black": "#000000",
  "blue": "#1B4780",
  "brightBlack": "#555753",
  "brightBlue": "#729FCF",
  "brightCyan": "#34E2E2",
  "brightGreen": "#8AE234",
  "brightPurple": "#AD7FA8",
  "brightRed": "#EF2929",
  "brightWhite": "#EEEEEC",
  "brightYellow": "#FCE94F",
  "cursorColor": "#FFFFFF",
  "cyan": "#02C1C5",
  "foreground": "#D3D7CF",
  "green": "#4E9A06",
  "name": "Tango Dark (Modified)",
  "purple": "#75507B",
  "red": "#d14747",
  "selectionBackground": "#FFFFFF",
  "white": "#D3D7CF",
  "yellow": "#C4A000"
}

Note: You may need to set "startingDirectory": "~", under profiles.list[gitBash] to prevent git bash opening to System32 by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment