Commit e76796b6 by Erik OShaughnessy Committed by Arun Babu Neelicattu

Update shell.py

These small changes allow `poetry shell` to properly activate a python virtual environment when the user's shell is `tcsh`.
parent 92db1f2c
...@@ -94,6 +94,8 @@ class Shell: ...@@ -94,6 +94,8 @@ class Shell:
suffix = ".fish" suffix = ".fish"
elif "csh" == self._name: elif "csh" == self._name:
suffix = ".csh" suffix = ".csh"
elif "tcsh" == self._name:
suffix = ".csh"
else: else:
suffix = "" suffix = ""
...@@ -104,6 +106,8 @@ class Shell: ...@@ -104,6 +106,8 @@ class Shell:
return "source" return "source"
elif "csh" == self._name: elif "csh" == self._name:
return "source" return "source"
elif "tcsh" == self._name:
return "source"
return "." return "."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment