Skip to content

Commit

Permalink
Merge pull request #273 from e-nomem/fix-fish-prompt
Browse files Browse the repository at this point in the history
Fix nodeenv prompt when using Fish
  • Loading branch information
ekalinin authored Oct 26, 2020
2 parents c9ee277 + 94c1608 commit 9f959f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,8 +1436,8 @@ def main():
# Prompt override provided?
# If not, just prepend the environment name.
if test -n ""
printf '%s%s' "" (set_color normal)
if test -n "__NODE_VIRTUAL_PROMPT__"
printf '%s%s ' "__NODE_VIRTUAL_PROMPT__" (set_color normal)
else
printf '%s(%s) ' (set_color normal) (basename "$NODE_VIRTUAL_ENV")
end
Expand Down

0 comments on commit 9f959f3

Please # to comment.