Skip to content

Commit

Permalink
fix(shell): move PWD environment exclude to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Jan 12, 2021
1 parent 33bd166 commit 848ec99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions ddb/feature/shell/integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ def set_environment_variable(self, key, value):
def remove_environment_variable(self, key):
yield "unset " + self._sanitize_key(key)

def before_environ_backup(self, environ):
for key in ('PWD',):
if key in environ:
del environ['PWD']

def remove_all_binary_shims(self, shims_path: str):
shims = []

Expand Down
2 changes: 1 addition & 1 deletion ddb/feature/shell/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ShellSchema(FeatureSchema):
shell = fields.String(required=True)
path = fields.Nested(PathSchema, required=True, default=PathSchema())
envignore = fields.List(fields.String(), required=False, default=[
"PYENV_*", "_", "PS1", "PS2", "PS3", "PS4"
"PYENV_*", "_", "PS1", "PS2", "PS3", "PS4", "PWD"
])
aliases = fields.Dict(required=False, default={})
global_aliases = fields.List(fields.String(), required=False, default=[])

0 comments on commit 848ec99

Please sign in to comment.