Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sPath = ".:/sys/bin"
- if turtle then
- sPath = sPath..":/sys/bin/turtle"
- else
- sPath = sPath..":/sys/bin/computer"
- end
- if http then
- sPath = sPath..":/sys/bin/http"
- end
- if term.isColor() then
- sPath = sPath..":/sys/bin/color"
- end
- shell.setPath( sPath )
- help.setPath( "/sys/lib64" )
- shell.setAlias( "ls", "list" )
- shell.setAlias( "dir", "list" )
- shell.setAlias( "cp", "copy" )
- shell.setAlias( "mv", "move" )
- shell.setAlias( "rm", "delete" )
- if fs.exists( "/sys/autorun" ) and fs.isDir( "/sys/autorun" ) then
- local tFiles = fs.list( "/sys/autorun" )
- table.sort( tFiles )
- for n, sFile in ipairs( tFiles ) do
- if string.sub( sFile, 1, 1 ) ~= "." then
- local sPath = "/sys/autorun/"..sFile
- if not fs.isDir( sPath ) then
- shell.run( sPath )
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement