镜像自地址
https://github.com/Hilbis/Hilbish
已同步 2025-07-10 21:12:02 +00:00
Destroyed Functions (markdown)
父节点
2a0d2f8e3c
当前提交
1999482f61
32
Functions.md
32
Functions.md
@ -1,32 +0,0 @@
|
|||||||
Hilbish has a few global functions that are always accessible. Not else much to say
|
|
||||||
|
|
||||||
### alias(aliasname, orig)
|
|
||||||
Creates an alias of `aliasname`, which points to `orig`
|
|
||||||
|
|
||||||
#### Example
|
|
||||||
```lua
|
|
||||||
alias('cls', 'clear')
|
|
||||||
```
|
|
||||||
|
|
||||||
### prompt(text)
|
|
||||||
Sets the Hilbish prompt to `text`.
|
|
||||||
|
|
||||||
There are a few verbs that can be used in the prompt text. These will be formatted and replaced with the appropriate values.
|
|
||||||
`%d` - Current working directory
|
|
||||||
`%u` - Name of current user
|
|
||||||
`%h` - Hostname of device
|
|
||||||
|
|
||||||
#### Example
|
|
||||||
```lua
|
|
||||||
prompt '%u@%h %d'
|
|
||||||
```
|
|
||||||
|
|
||||||
### multiprompt(text)
|
|
||||||
Sets the Hilbish multiline prompt to `text`.
|
|
||||||
This is for when incomplete shell input is provided or the user chooses to continue the line.
|
|
||||||
|
|
||||||
#### Example
|
|
||||||
```lua
|
|
||||||
multiprompt '.. '
|
|
||||||
```
|
|
||||||

|
|
正在加载...
x
在新工单中引用
屏蔽一个用户