Hacker News new | ask | show | jobs
by konstmonst 2896 days ago
Even on Windows I use mingw64 terminal + pacman. My pain points are:

- Conemu can show up on a shorcut, Windows Console can't - Windows Console doesn't have tabs - There is no CTRL + R to search for the last command

Ok maybe I've got more bash issues: - autocompletion in cmd doesn't work, not for commands nor for command arguments, like in Linux consoles - mc doesn't work in cmd

- I really hate dos batch language because it is not logical imho (I don't want to start to rant about it here). On the other hand I remember the bash language better and can write small one liners to create commands that don't natively exist. PowerShell is not an alternative because it treats everything as text and inserts new lines, where bash does not.

1 comments

> There is no CTRL + R to search for the last command

On Unix this is typically a shell feature, not a console/terminal feature. The corresponding way to do this in the Windows console would be F8, I think.

> autocompletion in cmd doesn't work

> I really hate dos batch language

None of those have anything to do with the console.

Wow! This blew my mind. I have grown very used to using cmd, but have not thought of using the F keys before (do not know why). Behavior seemed strange at first, but after a quick DDG search found this StackOverflow question [0] and that led to this documentation [1]. This is a huge area of functionality which I don't think most people know about.

I will be using F7 a lot in the future.

As an aside, maintaining backwards compatibility (this is DOS era stuff) is why IMO it would be very hard to update core windows utilities, but maintaining backwards compatibility (and similar decisions) is why IMO Windows is as popular as it is.

[0] https://stackoverflow.com/questions/1641948/f-n-shortcuts-in...

[1] https://docs.microsoft.com/en-us/previous-versions/windows/i...

C-r is a feature of the PSReadLine module for PowerShell.
For cmd you can install clink.
I really hope they include clink in the native Windows console, it's such a great addition.

type directory name... hit tab... get slash added automatically at the end... mind blown