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:
suffix = ".fish"
elif "csh" == self._name:
suffix = ".csh"
elif "tcsh" == self._name:
suffix = ".csh"
else:
suffix = ""
......@@ -104,6 +106,8 @@ class Shell:
return "source"
elif "csh" == self._name:
return "source"
elif "tcsh" == self._name:
return "source"
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