forked from cia-foundation/TempleOS
-
Notifications
You must be signed in to change notification settings - Fork 4
/
04-HomeWrappers.ZC
executable file
·71 lines (55 loc) · 1.24 KB
/
04-HomeWrappers.ZC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//Place this file in /Home and change
//anything you want.
#help_index "Cmd Line (Typically)"
//These are customized quick commands.
//Feel free to add more or change.
public I64 F(U8 *needle_str, U8 *fu_flags = NULL)
{//Find text in all text files.
return Find(needle_str, "/*", fu_flags);
}
public I64 R(U8 *needle_str, U8 *replace_text = NULL, U8 *fu_flags = "+l-i")
{//Find text and replace in all text files.
return Find(needle_str, "/*", fu_flags, replace_text);
}
public I64 FD(U8 *needle_str, U8 *fu_flags = NULL)
{//Find text in cur dir text files.
return Find(needle_str, "*", fu_flags);
}
public I64 RD(U8 *needle_str, U8 *replace_text = NULL, U8 *fu_flags = "+l-i")
{//Find text and replace in cur dir text files.
return Find(needle_str, "*", fu_flags, replace_text);
}
public U0 Cls()
{//Clear terminal. Reminiscent of DOS command of same name.
DocClear;
}
public U0 SysCls()
{//Clear System terminal.
Sys("DocClear;\n");
}
#define STD_BOOTHDINS "\nc\np1\n\n\n\n"
public U0 bi()
{// BootHDIns
In(STD_BOOTHDINS);
BootHDIns;
}
public U0 rb()
{
Reboot;
}
public I64 ll()
{
return Dir;
}
public I64 ls(U8 * dir)
{
return Dir(dir);
}
public I64 cd(U8 * dir)
{
return Cd(dir);
}
public I64 rm(U8 * dir)
{
return Del(dir);
}