-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d5a036
commit 719d94e
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[❮ Back](..) | ||
|
||
# BDSH Commands | ||
|
||
bdsh contains many commands for you to use, packed inside the shell. | ||
|
||
Some are self explainatory, others will be explained here. | ||
|
||
See the order that bdsh finds and runs commands [here](file-structure.md#binary-execution). | ||
|
||
## ld (list directory) | ||
|
||
Prints all files and folders in the current directory, or the directory passed as an argument | ||
|
||
## def (define) | ||
|
||
Binds keywords to definitions. Similar to a shortcut, but for commands. | ||
|
||
### Example (`hello -> echo hi`) | ||
|
||
```bdsh | ||
/$ def hello echo hi | ||
defined 'hello' to run 'echo hi' | ||
/$ hello | ||
hi | ||
``` | ||
|
||
## throw | ||
|
||
Throws an exception. | ||
|
||
## go | ||
|
||
Goes to a directory, similar to `cd` on other operating systems. | ||
|
||
## peek | ||
|
||
Peeks into a file, and prints its contents to the terminal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters