Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

15
  • What does your function do? It surely does not provide a counting of the files, does it? I get the following, as in how to call the function, but the function itself does not jive, man. Commented Jan 20, 2015 at 9:29
  • The function itself sets fine, but when I call it I get an error. That is from the command line. If I put your code in the bashrc file and run it. I get a count (though wrong), and it does not update with each cd into a different directory. I've updated question above. Thanks for the help. Commented Jan 21, 2015 at 2:38
  • I believe ya, but am just calling it as I see it. Perhaps it's worth mentioning I am running Cygwin? I have updated my exact PS1 command so that any mistakes can be seen. Commented Jan 21, 2015 at 2:47
  • v=c count_glob * (c=4)+ Commented Jan 21, 2015 at 2:55
  • and (h=18)+ ... Yes, 4 directories and 18 hidden files (though 2 of those are . and ..) Commented Jan 21, 2015 at 2:57