diff --git a/cd.sh b/cd.sh index b88b6fd..3d94d0f 100644 --- a/cd.sh +++ b/cd.sh @@ -578,8 +578,10 @@ STEP = ${CD_STEP} $(cd_echo CD_OS_ID CD_OS_VERSION) DOWN = \"${CD_DOWN}\" -UP = \"${CD_UP}\" VERTICAL = \"${CD_BOX_VERTICAL}\" +UP = \"${CD_UP}\" + +SPLIT = \"${CD_SPLIT}\" def open(*arguments): @@ -590,10 +592,6 @@ def open(*arguments): def shut(*arguments): print('${CD_SHUT}', end=str()) print(*arguments, flush=True) - - -def split(): - print('${CD_SPLIT}', flush=True) " } diff --git a/cd/__init__.py b/cd/__init__.py index d1c1653..82a2c1e 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -109,6 +109,10 @@ def set_ssh(*arguments): os.chmod(known, 0o400) +def split(): + print(env.SPLIT, flush=True) + + def step(*arguments): env.STEP += 1 print(env.DOWN)