diff --git a/cd.sh b/cd.sh index 5058593..c816f2a 100644 --- a/cd.sh +++ b/cd.sh @@ -731,6 +731,7 @@ local text="${2}" # constants CD_BOX_DOWN="╭" +CD_BOX_HORIZONTAL="─" CD_BOX_LEFT="╴" CD_BOX_RIGHT="╶" CD_BOX_UP="╰" @@ -752,7 +753,7 @@ CD_PM_APT="apt" CD_PM_DNF="dnf" CD_PM_PACMAN="pacman" -CD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈" +CD_HORIZONTAL="${CD_BOX_HORIZONTAL}╌╌┄┄┈┈" CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}" CD_DOWN="${CD_BOX_DOWN}${CD_HORIZONTAL}" diff --git a/cd/__init__.py b/cd/__init__.py index 7970a1a..5b608cf 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -77,12 +77,6 @@ def browse(root: str): shut(root) -def cat(file: str): - open(file) - print(fs.read_file_text(file)) - shut(file) - - def install_commands(path): step('Install commands') user = '/usr/local/bin' @@ -119,7 +113,6 @@ def set_ssh(*arguments): if ssh_hosts: fs.write(known, ssh_hosts) os.chmod(known, 0o400) - cat(known) # browse(ssh)