Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Add python virtual env name prefix to robbyrussell
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilet authored and JanDeDobbeleer committed Jun 5, 2020
1 parent 65fe9b0 commit 019d995
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Themes/robbyrussell.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ function Write-Theme {
If ($lastCommandFailed) {
$promtSymbolColor = $sl.Colors.WithForegroundColor
}


#check the python virtual environment
If (Test-VirtualEnv) {
$prompt += Write-Prompt -Object ("(" + $(Get-VirtualEnvName) + ") ")
}

# Writes the postfixes to the prompt
$prompt += Write-Prompt -Object ($sl.PromptSymbols.PromptIndicator + " ") -ForegroundColor $promtSymbolColor

Expand Down

0 comments on commit 019d995

Please sign in to comment.