mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	feat: cd with no path changes to homedir
This commit is contained in:
		
							parent
							
								
									7326cb77c6
								
							
						
					
					
						commit
						8d92fc3b74
					
				@ -10,8 +10,10 @@ commander.register('cd', function (path)
 | 
			
		||||
		local ok, err = pcall(function() fs.cd(path[1]) end)
 | 
			
		||||
		if not ok then
 | 
			
		||||
			if err == 1 then
 | 
			
		||||
				print("directory does not exist")
 | 
			
		||||
				print('directory does not exist')
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
		return
 | 
			
		||||
	end
 | 
			
		||||
	fs.cd(os.getenv 'HOME')
 | 
			
		||||
end)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user