From 5bbcb10091f5c93a5204df3546d2ff63ab49acb3 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 27 Apr 2024 16:52:52 +0200 Subject: [PATCH] environ --- cd/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cd/__init__.py b/cd/__init__.py index f8fb36d..9dd0619 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -6,7 +6,7 @@ from rwx import ps COMMANDS_PREFIX = 'cd-' -environment = sorted(os.environ.items()) +environment = os.environ project = Project(environment) projects = Projects(environment) @@ -22,7 +22,7 @@ def cd_clone_branch(): def cd_list_environment(): - for variable, value in environment: + for variable, value in sorted(environment.items()): print(variable, '=', value)