Compare commits
2 commits
587fe469eb
...
e03bd54844
Author | SHA1 | Date | |
---|---|---|---|
e03bd54844 | |||
b3b9a90375 |
2 changed files with 8 additions and 2 deletions
3
cd.sh
3
cd.sh
|
@ -731,7 +731,6 @@ local text="${2}"
|
|||
# constants
|
||||
|
||||
CD_BOX_DOWN="╭"
|
||||
CD_BOX_HORIZONTAL="─"
|
||||
CD_BOX_LEFT="╴"
|
||||
CD_BOX_RIGHT="╶"
|
||||
CD_BOX_UP="╰"
|
||||
|
@ -753,7 +752,7 @@ CD_PM_APT="apt"
|
|||
CD_PM_DNF="dnf"
|
||||
CD_PM_PACMAN="pacman"
|
||||
|
||||
CD_HORIZONTAL="${CD_BOX_HORIZONTAL}╌╌┄┄┈┈"
|
||||
CD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"
|
||||
|
||||
CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}"
|
||||
CD_DOWN="${CD_BOX_DOWN}${CD_HORIZONTAL}"
|
||||
|
|
|
@ -77,6 +77,12 @@ 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'
|
||||
|
@ -113,6 +119,7 @@ def set_ssh(*arguments):
|
|||
if ssh_hosts:
|
||||
fs.write(known, ssh_hosts)
|
||||
os.chmod(known, 0o400)
|
||||
cat(known)
|
||||
#
|
||||
browse(ssh)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue