Please, can I get a decent command line now?
Please, can I get a decent command line now?
A lot of windows-specific gui commands won't work through the ssh layer, but will if you run the cygwin bash shell directly. (Maybe there's some way to get them to work over SSH but I have never had reason to try and figure it out).
$ which nmap.exe
/cygdrive/c/Program Files/Nmap/nmap.exe
$ nmap.exe -PN -p 80,443 news.ycombinator.com | grep tcp
80/tcp open http
443/tcp open https
$ which ipconfig
/cygdrive/c/Windows/system32/ipconfig
$ where ipconfig
C:\Windows\System32\ipconfig.exe
$ where which
C:\cygwin\bin\which.exe
$ which where
/cygdrive/c/Windows/system32/where
$ ipconfig /all | grep Physical
Physical Address. . . . . . . . . : [redacted]
Physical Address. . . . . . . . . : [redacted]
Physical Address. . . . . . . . . : [redacted]
Physical Address. . . . . . . . . : [redacted]
Physical Address. . . . . . . . . : [redacted]
Physical Address. . . . . . . . . : [redacted]
Physical Address. . . . . . . . . : [redacted]
Physical Address. . . . . . . . . : [redacted]
Physical Address. . . . . . . . . : [redacted]
$ reg query 'HKEY_LOCAL_MACHINE\Software\GOG.com\' /s | head
HKEY_LOCAL_MACHINE\Software\GOG.com
DefaultPackPath REG_SZ F:\
DesktopIcon REG_SZ OFF
HKEY_LOCAL_MACHINE\Software\GOG.com\Games
HKEY_LOCAL_MACHINE\Software\GOG.com\Games\1207666383
PATH REG_SZ F:\Star Wars - X-Wing (1993)
GUID REG_SZ {F014338D-42E5-4DFC-BE77-F8E52BD998D5}Other platforms have a half dozen terminal programs, three of which are usually very good, and Windows has one that looks like it was hacked together on a weekend in 1998.
PuTTY is great, honestly. It's not pretty, but neither is the windows console nor PowerShell.
How much energy do you expect me to waste evaluating and choosing new ones when the one I have works just fine the way it is? I have better things to be doing.
Linux in particular is filled with "well enough" solutions that should be striving to be better. Although there's misfires when controversial things like systemd happen, there has been steady improvement in other areas. Imagine if Nginx had never happened, if NCSA httpd was "good enough"?
The Windows user base deserves better than PuTTY.
Occasionally I get tripped up on linux terminals due to the additional requirement that I "ctrl-c" to activate a copy, but that is extremely minor since that method of copy/paste is shared by almost every other tool I use except for putty.
Also couldn't feel more clunky if it tried, impressive as its feature set is.
When did you last try PowerShell?
In version 1.0 the history size was 64 by default - but could be changed.
In PowerShell v3 that's increased to 4096 by default. If you can overflow that in an hour you are a seriously impressive typist! That more than one command line per second - sustained.
If you manage to break that, you can assign any value up to 32767 - yes that's 9 different commands per second.
PowerShell can discard duplicates, so if you manage to break 4096 different commands in the run of one day you are doing something wrong.
Like not using snippets (http://blogs.msdn.com/b/powershell/archive/2012/06/27/snippe...).
Oh - i forget - bash don't do snippets.
> and tab completions on anything except files in `pwd`.
Seriously, have you tried PowerShell - like ever?
PowerShell's tab completion blows anything bash out of the water: o PowerShell tab completions are based on command metadata - not on external "completion definitions". The result is that tab completion works for all cmdlets - not just for those that has a "completion file". o PowerShell will complete on anything: Command names, parameter names (options), parameter values - even dynamic values. Try this on PowerShell "ps <tab>" - and you'll be allowed to complete based on the names of running processes. o PowerShell tab completion also works for parameters of user defined functions - and even for parameters of script files. If you declare a script to take parameters, PowerShell will pick it up and allow tab completion on the parameter names and allowed values.
I fired it up just now on Windows 7 that I have available.
> In PowerShell v3 that's increased to 4096 by default.
Once I quit Powershell, all my history's gone. On my unix machine, I can search my command history all the way back to 2011.
This short-term memory won't cut it for my needs.
> Try this on PowerShell "ps <tab>"
I tried, and immediately received the first file in my user directory.
"dir /<tab>" will erase the / and complete it with some other file name. I was expecting it to list the options.
ConEmu is not a shell, so it does not provide "shell features" like tab-completion, command history and others. [1]