6 ms·
Oh, wow. Please, can I get a decent command line now?
by outworlder 12y ago
Oh, wow.
Please, can I get a decent command line now?
- maccard 12y agoYou mean like PowerShell?
- maratc 12y agoNo, the one with history going back more than an hour, and tab completions on anything except files in `pwd`.
- lzybkr 12y agoTry https://github.com/lzybkr/PSReadLine https://github.com/lzybkr/PSReadLine - included in Windows 10 now.
- stinos 12y agothat's basically what conemu brings
- maccard 12y agoPowershell has had that support for quite a while too.
- maratc 12y agoDisclaimer ConEmu is not a shell, so it does not provide "shell features" like tab-completion, command history and others. [1] [1]https://code.google.com/p/conemu-maximus5/ https://code.google.com/p/conemu-maximus5/
- stinos 12y agoFair point, my mistake: my ConEmu does have history and copletion but it has been so long ago I installed it I didn't remember this is through clink https://code.google.com/p/conemu-maximus5/wiki/ConEmu_Clink https://code.google.com/p/conemu-maximus5/wiki/ConEmu_Clink
- useerup 12y ago> No, the one with history going back more than an hour 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/snippets-in-windows-powershell-ise-3-0.aspx 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.
- maratc 12y ago> When did you last try PowerShell? 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.
- dummyfellow 12y agoyou can get conemu
- oblio 12y agoOr Console2/ConsoleZ. I've been using them + cygwin for 7 years no, they're quite solid.
- kelvin0 12y agoTried it, and it looks nice ... however crashes very often for me, and sometime becomes horribly slow (typing and seeing it displayed takes close to a second..)
- joshschreuder 12y agoI really like cmder (http://gooseberrycreative.com/cmder/ http://gooseberrycreative.com/cmder/) which is a wrapper to conemu + clink (which adds a bunch of nice enhancements to the command line).
- Goladus 12y agoI use cygwin. I run cygwinsshd on localhost:22 and use Putty for my client. 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}
- Macha 12y agoWhy Putty over mintty? mintty is a fork of PuTTY's UI for local use, and is the default in cygwin these days.
- dom96 12y agoI think one of Windows 10's improvements will be a better command line.
- touristtam 12y agoHave you given Cmder a go? > http://gooseberrycreative.com/cmder/ http://gooseberrycreative.com/cmder/