Live data from Hacker News

A Saner Windows Command Line

futurice.com

161–164 of 164 posts

Re: A Saner Windows Command Line

#161
post #44

Earlier quoted context omitted.

> why is -b the flag for key length in ssh-keygen? Because the length is given in "bits". I get your point, but that's a terrible example! :-)

Now that you've said that, i'll never forget it again (although what the hell does -t stand for then?) But the point is that even though it's most likely "my fault" for not reading the manual correctly (i'm not saying you were implying that, but often i do feel that it's ultimately because of my laziness that i have these problems), they aren't "intuitive" in the sense that that you can just pick it up and go. The on…

> Now that you've said that, i'll never forget it again (although what the hell does -t stand for then?)

The "type" of key. :D

It would be nice to have a more fully featured auto-complete and it is feasible to do. I'd hope that it's the kind of thing that gnu-utils could get a standard for that other tools could just provide a completion script, rather than each shell having to do its own. Maybe someone's already working on it.

Re: A Saner Windows Command Line

#162

Earlier quoted context omitted.

> Some of it stems from the fact that i just don't use it enough, but most of it from the fact that this shit just isn't intuitive. I have exactly the same problem. I use Linux since about 8 years but somehow I just don't use the commandline very often so I forget stuff all the time. Because of this I have half a dozen post-its glued to my monitor for all the grep/git/whatever tricks I just can't keep in my head. And…

If you're interested in getting past this stage of learning the Linux/Bash environment, I'd recommend reading man pages. I worked with someone who introduced me to this approach, and at first I was like "I'll just Google it again and get on with my life," but once I forced my way through a couple of them it's really opened my eyes and changed the way I use the tools available. ls has enough options to spell most peop…

Thx for the tip about man pages, somehow I never thought about reading them.

Re: A Saner Windows Command Line

#163
post #99

To hear bash-people to call Powershell "non-intuitive" sounds like those immigrants that go to a foreign land, refuse to learn the local language and insist on the natives to understand their immigrant language. Or like programmers that think that every programming language should have the C syntax. Bash and Unix commands are only "intuitive" after years of practice; Powershell is not different. And it doesn't have a…

Windows fanboy here. Powershell made the mistake of combining a bad command prompt with a bad scripting language. It is not a "shell" at all. It is bad Python. The excessive verbosity and object safety is great for admin scenarios where you don't suddenly destroy your corporate email transition because of a VP with an apostrophe in her name. But at that point perhaps you should just use C# instead? But for everything…

In my view they should have made Powershell as a language that's derived from C#. Or they should have stuck to bash. Both approaches could have worked. Instead it's that weird thing in the middle that doesn't do anything really right.

Re: A Saner Windows Command Line

#164
post #149
post #55

Earlier quoted context omitted.

Happy ConEmu plus clink user for at least a year, I suspect more, but I don't keep track, I just move on.

I've tried one or both earlier. Didn't quite get what the difference is. (Maybe did not check well enough at the time.) Are they related tools, or is one a substitute for the other?

https://mridgers.github.io/clink/

"Clink combines the native Windows shell cmd.exe with the powerful command line editing features of the GNU Readline library, which provides rich completion, history, and line-editing capabilities. Readline is best known for its use in the well-known Unix shell Bash, the standard shell for Mac OS X and many Linux distributions."

https://conemu.github.io/

"ConEmu-Maximus5 is a Windows console emulator with tabs, which presents multiple consoles and simple GUI applications as one customizable GUI window with various features."

Post reply on HN