diff --git a/cd/__init__.py b/cd/__init__.py index 4795a81..17399ce 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -4,8 +4,8 @@ COMMANDS_PREFIX = 'cd-' def cd_list_environment(): - for variable, value in os.environ.items(): - print(variable, value) + for variable, value in sorted(os.environ.items()): + print(variable, '=', value) def install_commands(path):