4 ms·
Great! So I can now run bash on windows (with WSL), open tmux, and open powershell prompts in each tab: the loop is complete! I wish powershell's documentation
by vmarsy 10y ago
Great! So I can now run bash on windows (with WSL), open tmux, and open powershell prompts in each tab: the loop is complete!
I wish powershell's documentation was a bit more clear about what's powershell 1.0, 2.0, 3.0... Etc.
A lot of time I'd find a verbose and tedious way to do one thing because the code was written in "old powershell", when the latest version had a much more elegant solution (either because of new language features or simply more cmdlets were added, removing the need to fall back to some C# syntax)
On stack overflow it often means read more than the chosen answer, somebody would have added a newer way to do it. I wish Microsoft "hey script guy" blog had some versioning info (this post was last updated in 2016, using powershell 3, see powershell 2 version here)
- cptskippy 10y agoI agree, there's been a lot of churn in the PS versions and it makes it hard. Especially when you're new to it and trying to learn.
- ianai 10y agoYep, in my experience the documentation for Python and really anything OSS far outstrips powershell
- artursapek 10y agoDoes tmux work well on Windows? Everything Microsoft has been doing recently with bash on Windows has made me consider buying a surface pro as my next machine.
- sevensor 10y agoTmux came first to cygwin, and now it works on msys2. I don't know about MS-BASH, but MinTTY + msys2 + tmux has been working great for me.
- temac 10y agotmux works quite well. I'm less sure about the surface pro :p
- vmarsy 10y agoI was a big GNU Screen user on linux, which unfortunately doesn't work on WSL. So I tried tmux, and it works fine for the few minutes I tried it: Create new tabs, detach session, etc. But once you close the Bash primary window, the session dies, so it's not as persistent as running tmux on a Linux machine, which makes sense given how WSL works. I haven't figured out yet if there is a way to always keep WSL running in the background so that I could close the bash terminal, reopen, and reattach my tmux session.
- Senji 10y agoExecute tmux as a scheduled task.
- fsloth 10y agoI have Surface Pro 4 i5 and while I personally love it- I can't really recommend it due to various issues (battery life is shit, sleep is bugridden so best to hibernate only). It's uncomfortable as a tablet, and near useless for the main thing ultra light computers are used - traveling a lot. I use it at home. The pros are a really tiny size, yet it packs sufficient computing power for many things, awesome screen. I can use it at a desk or grab it to the sofa - but I need to keep the power adapter handy. If the execution was as flawless as Apple's Ipads are it would probably be the best computer ever (by my subjective scoring which appreciates a pen and sRGB precise screen probably way more than the average user). But as it is - and I'm comparing it to my Ipad pro which makes all the problems stick out like a sore thumb - it's not an obvious recommendation.
- artursapek 10y agoIt really is annoying that the battery issues are so persistent. That's the main thing that has kept me from even going to a store to check one out. I've been stalking /r/surface and I've been seeing complaints about this for over 6 months. Apparently it's more Intel's fault than Microsoft's, but still very disappointing. I love the form factor and I want to support Microsoft lately.
- jdmichal 10y agoThe official cmdlet documentation is versioned, though for some reason it only seems to have versions 3, 4, and 5. Which, agreed is very annoying, since Windows 7 has version 2 by default. https://technet.microsoft.com/en-us/library/hh849971.aspx https://technet.microsoft.com/en-us/library/hh849971.aspx (You should upgrade to at least 3. It has all sorts of useful stuff added! File hashing and web requests at the very least.)