Skip to content

Commit

Permalink
Merge pull request conda#8596 from EternalPhane/fix-ps-promt
Browse files Browse the repository at this point in the history
fix missing current working path in powershell prompt
  • Loading branch information
msarahan authored Apr 24, 2019
2 parents f2acd53 + 131ea94 commit 1894e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda/shell/condabin/Conda.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ function TabExpansion($line, $lastWord) {
function Add-CondaEnvironmentToPrompt() {
# We use the same procedure to nest prompts as we did for nested tab completion.
if (Test-Path Function:\prompt) {
Rename-Item Function:\prompt CondaPromptBackup
Rename-Item Function:\prompt script:CondaPromptBackup
} else {
function CondaPromptBackup() {
function script:CondaPromptBackup() {
# Restore a basic prompt if the definition is missing.
"PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
}
Expand Down

0 comments on commit 1894e9e

Please sign in to comment.