From f607ed12b0b77a4c93663ba6f20bd4dcec966230 Mon Sep 17 00:00:00 2001 From: Micah Rairdon Date: Tue, 17 Oct 2017 23:01:17 -0400 Subject: [PATCH] Added vscode support VSCode renders themes pretty nicely with the following setting to change terminal fonts to use a Powerline font: ``` "terminal.integrated.fontFamily": "'DejaVu Sans Mono for Powerline'" ``` --- Helpers/Prompt.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Helpers/Prompt.ps1 b/Helpers/Prompt.ps1 index 3e6c0d1f..2da89965 100644 --- a/Helpers/Prompt.ps1 +++ b/Helpers/Prompt.ps1 @@ -7,6 +7,10 @@ function Test-IsVanillaWindow { # Hyper.is return $false } + elseif ($env:TERM_PROGRAM -eq "vscode") { + # Visual Studio Code + return $false + } else { # Powershell return $true @@ -171,4 +175,4 @@ function Set-CursorUp { } $escapeChar = [char]27 -$sl = $global:ThemeSettings #local settings \ No newline at end of file +$sl = $global:ThemeSettings #local settings