We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f9e2e2 + f0f2a4b commit 08fa48bCopy full SHA for 08fa48b
1 file changed
nodeenv.py
@@ -1397,10 +1397,13 @@ def main():
1397
# `fish_prompt` using `functions -e`.
1398
set -l fish_function_path
1399
1400
- # Erase virtualenv's `fish_prompt` and restore the original.
1401
- functions -e fish_prompt
1402
- functions -c _node_old_fish_prompt fish_prompt
1403
- functions -e _node_old_fish_prompt
+ # Prevents error when using nested fish instances
+ if functions -q _node_old_fish_prompt
+ # Erase virtualenv's `fish_prompt` and restore the original.
+ functions -e fish_prompt
1404
+ functions -c _node_old_fish_prompt fish_prompt
1405
+ functions -e _node_old_fish_prompt
1406
+ end
1407
set -e _OLD_NODE_FISH_PROMPT_OVERRIDE
1408
end
1409
0 commit comments