mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	Destroyed Functions (markdown)
							parent
							
								
									2a0d2f8e3c
								
							
						
					
					
						commit
						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 '.. '
 | 
			
		||||
```
 | 
			
		||||

 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user