back to article Powershell terminal sucks. Is there a better choice?

El Reg reader h4rm0ny wants your advice. Here goes. I've been using Bash for well over a decade. (About fifteen years?). I'm reasonable with it. I'm now teaching myself Powershell and whilst some of it I like, the default environment is terrible. I'm not talking about the language itself, but the fact that to use Powershell …

COMMENTS

This topic is closed for new posts.

Page:

Roo
Silver badge

Re: come on, tell us what os so wrong with bash?

"but for Windows you need commands taking OBJECTS held together with loops and pipes. That's what Powershell gives you."

That strikes me as a circular argument. Microsoft have intentionally chosen that route with PowerShell, they could have made it text centric if they wanted too with a bunch of lightweight utils (built in or otherwise).

3
2

Re: come on, tell us what os so wrong with bash?

I think the rationale for this was that powershell would work with .NET natively. There are some things that are easier to do in natively powershell and some things that are easier to do using older commands using exec. Yes I know your not supposed to do that but sometimes its just easier.

0
0

Powershell ISE for writing scripts definitely. For day-to-day terminal based mucking around a useful free tool is ConEmu for tabbing all manner of shells, be it cygwin/powershell/cmd. It also has a full-screen/split-screen options which I find useful.

https://code.google.com/p/conemu-maximus5/

1
0
Law

I used to use Console 2 for any command prompt and power shell work. Can set it to open to powershell automatically, and theme it, set transparency, and tab multiple windows.

http://sourceforge.net/projects/console/

Recently started using conemu, as it can slide down into and up out of view using shortcuts, meaning I can keep scripts running but hidden. It's nice looking too.

http://sourceforge.net/projects/conemu/

Nothing really rivals the proper terminal experience I get from my home machines though.

0
0
Anonymous Coward

Powershell ISE

I rarely use the Powershell console, I spend most of my time in the Powershell ISE which is much better than the console. the ISE in Powershell v2 is decent, but there is huge improvements on v3 and v4.

You may also try PowerGUI or Powershell Studio (Licenced).

1
0

console is awesome http://sourceforge.net/projects/console/

you can plug it on cmd, powershell and cygwin.bat.

transparency,tabs,select by lines instead of a stupid square, fully customisable, ctrl+c ctrl+v, select on highlight etc etc...

makes the powershell experience much much better.

0
0

console

you might want to ret console (available on sourceforge)

It got all the features you may want (tabs, select on highlight, keyboard shortcuts transparency etc...O)

0
0
Anonymous Coward

Edit the properties of the PS window

In the upper left corner of the window there's a right-click drop-down menu: the capital sigma icon. Select "properties"; that lets you edit the layout of the window, as well as turn on quickedit mode (options), which enables cut and paste with mouse buttons. Layout lets you modify the number of lines and their width. Font lets you select from a small number of fonts. Colors lets you select colors for text, background, popup text and popup background. These changes will stick until you modify them again.

1
0
Headmaster

Dear Harmony,

May point out that I am at an utter loss as to why you don't know how crappy the default Powershell is? Reason being that you are "teaching yourself" Powershell, so you must have, by definition, come across Powershell when you learned it...

Or maybe Harmony is the handle because of the three people living inside: the one who learned and can now teach, the one who needs to be taught, and the one holding the other in Harmony...

Interesting case, nevertheless!

Regards,

Guus

0
8
Silver badge

Helpful comment?

Dear Guus,

I am at an utter loss as to why you don't know what the English idiom "to teach oneself" means? Reason being that you have composed a message in grammatically-correct English whose sole purpose seems to be to insult the original poster.

3
0
Anonymous Coward

cygwin

1
4
Silver badge
Stop

If I want a *nix style terminal on my windows machine, I don't install cywin, I just use Putty to SSH to a linux machine and use it there. Windows is for windows-y stuff, and Linux is for linuxy stuff, each tool has a preferred use.

1
0
Anonymous Coward

Advice ?

Depending on why you are doing such a silly thing the correct answer may simply be:

Windows >>>===>> EXIT

Rationale: No Windows == No PowerShell == No problem

1
8
Silver badge

The eldist Niece reports ...

A combination of Cygwin, windows version of perl & REXX (with a splash of ruby) does a much nicer job of admining her highschool's network than the microsoft alternative. As always, BSD on the internet facing kit, and Slackware on the internal admin boxen. Seems to work nicely, even though she swears at the school district's policy of "LCD computing".

She's 17, graduated early, and will be off to Uni in September. She has been employed by the school district full time since the beginning of the year.

2
7
Silver badge
Thumb Up

Re: The eldist Niece reports ...

I have this funny feeling your niece's highschool are going to miss her. A lot. :)

0
0

You should try to use Xterm with the Window Manager Ratpoison -> Screenshot http://www.hackers-lab.org/index.php?title=Ratpoison

in this example I use emacs-nox in xterm ... have fun!

1
1
Megaphone

Shells are Primitive

I have never used a shell for any scripting. I go straight to the F# REPL.

F# is a statically typed language with strong type inference so it feels like a dynamically typed language.

You can interactively develop a script in Visual Studio where you get the full intellisense experience (and red squiggles). When done, you can run the script via the fsi.exe command line.

0
2
Anonymous Coward

Re: Shells are Primitive

"I have never used a shell for any scripting. I go straight to the F# REPL."

From http://msdn.microsoft.com/en-us/library/dd233175.aspx:

"F# Interactive can be used to write code at the console or in a window in Visual Studio."

So in other words... it's a shell.

2
0
Meh

And the score at half-time

Not comprehensive, but:

14 offtopic posts pushing, or defending pushing the use of bash/cygwin/perl for Windows SysAdmin

1 AC troll slagging off powershell, no other contribution

3 posts discussing languages in a completely irrelevant context

1 post from Guus trolling h4rm0ny for not knowing all this already.

1 offtopic post informing us all of how primitive shells are

1 offtopic post about xterm and using the ratpoison WM

1 AC and 1 non-AC troll coming out with the usual 'use Open Source,'cos MS suxx0rs' fuckwittery.

2 non-AC trolls slagging off cygwin, no other contribution

1 non-AC post informing us all how he hasn't used Powershell but it 'seems a bit weird'. Thanks for that.

7 actually constructive posts on ISE/LINQPad

1 constructive post on managing the console as it is.

5 constructive posts mentioning Sapien Powershell Studio, Console 2 and ConEmu etc

1 constructive post on .Net integration

1 post from jake with his usual irrelevant shite.

On-topic, here's a couple of other possibilities that build on the functionality of ISE

I'm currently experimenting with ASE (Admin Script Editor) - this was previously a commercial product for Powershell, the scripting host and KixStart that is now being provided free by the developers. Pretty useful, but the lack of a defined future (or potentially any future) for the product is slightly discouraging.

I haven't done so yet, but Powershell Plus from Idera is on my list of free IDEs to look at, as is Powershell Analyser

Others have mentioned products from Sapien and some interesting sounding FOSS consoles, so I'll leave it at that.

10
2

I like Power GUI (Quest/Dell) as I like the way you get the extra window showing variables and their contents, I find it helpful to expand object properties especially when the an object nests layers.

1
0

In what way, (other than GUI), does Powershell actually suck?

I haven't had anything overly problematic with anything I needed to do in it. Is this just a troll question or is there something fundamentally wrong with it which I need to know about, just in case?

0
2
Silver badge

Re: In what way, (other than GUI), does Powershell actually suck?

It's not a troll question and I don't think it does suck. I originally posted this question on the user forums because I was learning Powershell and found that the standard terminal for it was way behind the GNU/Linux equivalents. I actually quite like Powershell itself.

I think you replied a little too hastily to my post, tbh, if that's how you see it.

2
0

Sad but true

Tried to work with Powershell for about 6 months.

And I was really upset with it, and thought exactly the same: there must be a better way to use this.

If there is, then nobody shares it on the internet.

Compared to Unix shell, powershell doesn't come near. The object-orientedness is a nice concept, but in practice it's not that helpful.

What I used instead:

pyshell - much nicer, but I'm not a python fan.

gitbash (needs mingw) - just feels home when you are used to Unix shell scripting. Using that now for about 18 months, and I'm happy with it.

Sorry that I do not have a better answer. But I think that fellow posters show that this is as it is.

/Zane

1
3
Anonymous Coward

Re: Sad but true

"Compared to Unix shell, powershell doesn't come near. "

Actually Powershell is way more powerful than say Bash - you have to use addins for Bash to even come close to what Powershell provides and even then Powershell is a long ahead.

2
3
Silver badge

Re: Sad but true

Call me when it has a proper regex implementation, that Winglob-regex bastard is awful.

1
4
Silver badge

Re: Sad but true

Powershell already has a fully capable Regex implementation. What you presumably mean is that it is different from what you are used to in say Perl.

3
0
Silver badge
Linux

I ssh in from my OpenIndiana box....

1
1
Mushroom

Kill it with fire!

Cygwin is about the best it gets on Windows unfortunately. And even that's in a horrible bog standard Windows console. After using a Linux terminal it's like long nails on a chalkboard.

Even if you can get past PowerShell's fisher price UI, you're got to deal with an excruciatingly verbose syntax, that's ostensibly designed to cause as much RSI as possible. It's awful really. I pity the poor soul who has to use that monstrosity on a daily basis.

1
4

cygwin shell

These days a fresh cygwin install gives you mintty, a superior terminal based on PuTTY. If you're still suffering the old cygwin terminal, get it installed :)

0
1

Re: cygwin shell

> These days a fresh cygwin install gives you mintty, a superior terminal based on PuTTY. If you're still suffering the old cygwin terminal, get it installed :)

I haven't used it for some time so I didn't know that. I'll have to give a try again, thanks :)

0
0

Try PowerShell on top of ConEmu

0
0
Anonymous Coward

i just love it

Get a room full of diverse technical specialists and ask them which is the best technology for a given job.

Stand back.

Start recording fight for later Youtube hilarity.

Its like looking at my own firm on-line!

1
0
Silver badge

Re: i just love it

>>Start recording fight for later Youtube hilarity.

Well okay... But make sure you encode in H.264, not VP8.

3
0

You're all missing the point of the question

Use conemu or console2 they are far better than the standard console and have tabs, full size windowing decent cut paste etc.

install vim for text editing and you'll never leave the cli again.

If you want a proper ide then powergui is about the best.

1
0
Anonymous Coward

Re: You're all missing the point of the question

Trying ConEmu now, most impressed cheers for the info.

1
0

Conemu ftw

Conemu is excellent; I don't find it _quite_ as good as a typical linux console but the fact that I get to use powershell instead of bash is most welcome, certainly welcome enough to live with any small deficiencies in the Conemu console.

0
0

There is a StackOverflow question asking the same thing,

http://stackoverflow.com/questions/60950/is-there-a-better-windows-console-window

...with the top response being for the ConEmu terminal,

http://sourceforge.net/projects/conemu/

Quite possibly just what you need! I'll be checking it out too!

1
0
Silver badge

Bah!

The really encouraging thing about the spurious 'bash is better' "debate" is that it shows this old man that he was right in something he theorized a few years ago: much of the rabid Windows=crap, MS=evil zeitgeist in the post 90s graduate population seems to spring from "not what I know", something I am familiar with having worked on more operating systems than some *nix SAs would credit existing (they seemingly being of the 2+1 school of OSs: *nix, Windows and whatever apple is doing).

I work in a large *nix department which is twinned with a large windows one. The *nix SAs spend a lot of time laughing about how much better they are than the windows crowd at what we do. So much time, In fact, that no-one ever seems to get round to making it true.

Time and again when we are in panic mode it is the windows SA teams that have plans in place, procedures to follow, and contingency schedules up and running in a jiffy, while my lot flail around, answering "why can't you just do what they do?" with "well, it's windows!" and scrambling for their little black books in which they keep their alchemical secrets to themselves. An unscheduled absence during one of these events can be a thing of high comedy to watch unfold.

Our hot line can contact users (our user base in in the thousands) impacted by a server outage with good estimates of the down time expected - if those users happen to have the good fortune to be working on apps located on a windows server. If they are using one of our *nix servers they are, to use dense technical jargon, SOL. We have an enterprise-wide system for enabling this technology, but it involves the SAs knowing what is running on their servers and entering that list on a database. This they claim they are too busy to do (a blatant lie obvious to even the most oblivious upper manager).

I'm not popular just now because after the last disaster, when we were asked for ideas to improve the *nix departmental image, I suggested the SAs wear Stetsons so there would be no confusion as to their professionalism.

4
1
Anonymous Coward

This topic

could have been quite useful but, as usual, the posts are not quite what was intended by the author of the article. In case you forgot, during your mindless BASH vs PS vs Microsoft vs UNIX wars that are just completely irrelevant, the author wanted to know if there was an alternative to the shell not a fuckin alternative to the language.

wankers.

2
1

Page:

This topic is closed for new posts.

Forums

Biting the hand that feeds IT © 1998–2017