Skip to content

Commit

Permalink
More utillity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Feb 26, 2024
1 parent b24d1fc commit 4cf36d2
Show file tree
Hide file tree
Showing 7 changed files with 282 additions and 272 deletions.
4 changes: 2 additions & 2 deletions Beryllium/bin/df.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def human_readable(whatever):
vr("sps")[2],
vr("sps")[3],
)
+ "/"
+ pv[0]["root"]
+ " {}{}{}{}/".format(
+ " " * (len(pv[0]["root"]) - 4)
+ "{}{}{}{}/".format(
vr("vtotal"),
vr("vused"),
vr("vfree"),
Expand Down
2 changes: 1 addition & 1 deletion Beryllium/bin/exit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
except KeyboardInterrupt:
pass
be.based.run("runparts /etc/hooks/disconnect.d/")
be.based.command.exec("/" + pv[0]["root"] + "/bin/_waitforconnection.lja")
be.based.command.exec(pv[0]["root"] + "/bin/_waitforconnection.lja")
4 changes: 1 addition & 3 deletions Beryllium/bin/less.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
else pv[get_pid()]["i"],
)
vrd("lines_tmp")
be.based.command.fpexec(
"/" + pv[0]["root"] + "/bin/stringproccessing/line_wrap.py"
)
be.based.command.fpexec(pv[0]["root"] + "/bin/stringproccessing/line_wrap.py")
# Now our lines has been formatted

if not len(vr("lines")):
Expand Down
4 changes: 2 additions & 2 deletions Beryllium/bin/man.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rename_process("man")
vr("manls", listdir("/" + pv[0]["root"] + "/usr/share/man"))
vr("manls", listdir(pv[0]["root"] + "/usr/share/man"))
vr("manpages", set())
for pv[get_pid()]["manpage"] in vr("manls"):
if vr("manpage").endswith(".man"):
Expand All @@ -12,7 +12,7 @@
if vr("page_dayo") in vr("manpages"):
be.based.run(
"less",
["/" + pv[0]["root"] + "/usr/share/man/{}.man".format(vr("page_dayo"))],
[pv[0]["root"] + "/usr/share/man/{}.man".format(vr("page_dayo"))],
)
else:
term.write(
Expand Down
5 changes: 3 additions & 2 deletions Beryllium/bin/nano/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
vr("exists", 2)
vr("weltxt", "[ Welcome to nano. For basic help, type Ctrl+G. ]")

vr("versionn", "1.9.0")
vr("versionn", "1.9.1")

try:
vr("filee", be.based.user_vars["argj"].split()[1])
Expand Down Expand Up @@ -34,7 +34,7 @@
vrd("ll")
# vrd("i")

be.based.command.fpexec("/" + pv[0]["root"] + "/bin/stringproccessing/line_wrap.py")
be.based.command.fpexec(pv[0]["root"] + "/bin/stringproccessing/line_wrap.py")
vr("dataa", vr("lines"))
vr("lc", len(vr("dataa")))
vrd("lines")
Expand Down Expand Up @@ -175,3 +175,4 @@
vrd("ltd")
term.hold_stdout = False
term.flush_writes()
vr("ok", True)
Loading

0 comments on commit 4cf36d2

Please sign in to comment.