This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Rectar2's profile picture

ListHidden - lsh

Started by Rectar2, 24 August 2014 - 05:22 AM
Rectar2 #1
Posted 24 August 2014 - 07:22 AM
lsh

(not to be confused with nsh)

(or Lyqyd's lsh)

(or ls, which this is replacing)




LSH is a program that runs exactly like the LS program included with ComputerCraft, but also displays hidden files and directories. It is just a modification of the LS command, but with hidden files. The hidden files even have a different color!

I still haven't decided on a different color for hidden directories, any suggestions?

Screenshots
Spoiler

Normal ls:


lsh:

(ignore the missing Projects directory… I'm bad at screenshots)


Pastebin:
pastebin get RNapT7hj lsh
Edited on 31 August 2014 - 03:04 AM
Lyqyd #2
Posted 24 August 2014 - 07:38 AM
Hah. Kind of amusing that you mention nsh, since I also have a program that goes by the name lsh. Of course, it hasn't been published as a standalone program, but the naming coincidence is amusing. :P/>
willwac #3
Posted 24 August 2014 - 07:20 PM
Thats cool!
I just took out the if statement, but making them a different color, great idea!
InputUsername #4
Posted 25 August 2014 - 03:32 PM
Nice and useful little program, I might even replace the built in ls with this.

One thing I don't really understand though is why the "Projects" directory is gone in the second image :P/>
Rectar2 #5
Posted 26 August 2014 - 03:03 AM
One thing I don't really understand though is why the "Projects" directory is gone in the second image :P/>
Well, I kinda accidentally saved the same screenshot twice and then posted this. When I noticed, I had to redo the second screenshot and try to get it exactly the same. I guess I did a bad job :P/>