mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	feat: increment $SHLVL (closes #55)
This commit is contained in:
		
							parent
							
								
									5408e68e19
								
							
						
					
					
						commit
						7e970e9e81
					
				| @ -5,6 +5,9 @@ local commander = require 'commander' | ||||
| local bait = require 'bait' | ||||
| local old_dir = hilbish.cwd() | ||||
| 
 | ||||
| local shlvl = tonumber(os.getenv 'SHLVL') | ||||
| if shlvl ~= nil then os.setenv('SHLVL', shlvl + 1) else os.setenv('SHLVL', 1) end | ||||
| 
 | ||||
| -- Builtins | ||||
| commander.register('cd', function (args) | ||||
| 	bait.throw('cd', args) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user