emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: George Mauer <gmauer@gmail.com>
To: MS Window <ms.window@mailfence.com>,
	emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Powershell scripting with org-babel
Date: Mon, 10 Feb 2020 21:32:48 -0600	[thread overview]
Message-ID: <CA+pajWL0dkXcLPUPEu_nBTmu4=-MBo2ai5GRh74m8Xs35MANjA@mail.gmail.com> (raw)
In-Reply-To: <CAFm0skEVE0MwwSXMTVAx5yvatmshCxw0MzKG=ss1zDRpFVP9kA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2046 bytes --]

> Micro$loth WindBlows is a computer virus

Well that's mature and appropriate.

I recently did an implementation of `ob-pwsh` for supporting powershell
core (it assumes there’s a pwsh command available on PATH though thats
configurable with `org-babel-command:pws`). Here’s the link
https://github.com/togakangaroo/ob-pwsh. Instructions for installing are in
the README

It works ok and even supports variables but was a 3 hour hack job, plenty
of features missing. I hadn’t even announced it on this list before. The
code is pretty small though - under 60 loc if you want to contribute to it,
I’m game.

I also saw this a while ago but haven’t really dug in
https://old.reddit.com/r/emacs/comments/dkz0n1/babel_with_powershell/?st=k5jqc8es&sh=b464c181

Oh, and powershell is awesome. It’s 2020, we *should* have a runtime in our
terminal (eshell somewhat does this and is pretty good because of it). One
of the things that would be really nice to do some day would be some sort
of conversion between powershell and lisp structures so that we could pass
structured data as hashes and lists between languages - not just strings.

On Mon, Feb 10, 2020 at 7:59 PM briangpowell . <briangpowellms@gmail.com>
wrote:

> Micro$loth WindBlows is a computer virus
>
> But if you must use Windows, suggest you use Cygwin and BASH and/or EShell
> {the Emacs Shell}--you can do much more than PowerSh3ll
>
> And Emacs & OrgMode work very nicely on Cygwin
>
> On Mon, Feb 10, 2020 at 11:58 AM MS Window <ms.window@mailfence.com>
> wrote:
>
>> Hello,
>>
>> can you help me ? I want to use org-babel for Powershell scripting. I
>> found this code chunk on the internet for customizing org-babel for
>> Powershell on github:
>>
>> https://gist.github.com/cbilson/ae0d90d163be4d769f8a15ddb58292bc
>>
>> There is no explanation there I should put the configuration. The
>> org-babel documentation is too brief for me as beginner to understand.
>>
>> Yours sincerely
>>
>> Claus Keller
>>
>>
>>
>>

[-- Attachment #2: Type: text/html, Size: 3383 bytes --]

  reply	other threads:[~2020-02-11  3:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-10 16:38 Powershell scripting with org-babel MS Window
2020-02-11  1:58 ` briangpowell .
2020-02-11  3:32   ` George Mauer [this message]
2020-02-11 10:36     ` briangpowell .
2020-02-11 11:16       ` Bastien
2020-02-11  1:59 ` Jack Kamm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+pajWL0dkXcLPUPEu_nBTmu4=-MBo2ai5GRh74m8Xs35MANjA@mail.gmail.com' \
    --to=gmauer@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ms.window@mailfence.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).