the execute command now prints a traditional looking prompt
This commit is contained in:
		
							
								
								
									
										6
									
								
								demo.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								demo.sh
									
									
									
									
									
								
							@@ -20,7 +20,11 @@ function type()
 | 
				
			|||||||
{ printf "$*" | simtyping; }
 | 
					{ printf "$*" | simtyping; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function execute()
 | 
					function execute()
 | 
				
			||||||
{ type "$@" && wait && eval "$@"; }
 | 
					{
 | 
				
			||||||
 | 
					    printf "$(whoami)@$(hostname)\$ "
 | 
				
			||||||
 | 
					    type "$@" && wait
 | 
				
			||||||
 | 
					    eval "$@"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function cmd()
 | 
					function cmd()
 | 
				
			||||||
{ read command && eval "${command}"; }
 | 
					{ read command && eval "${command}"; }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user