all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Powershell scripting with org-babel
@ 2020-02-10 16:38 MS Window
  2020-02-11  1:58 ` briangpowell .
  2020-02-11  1:59 ` Jack Kamm
  0 siblings, 2 replies; 6+ messages in thread
From: MS Window @ 2020-02-10 16:38 UTC (permalink / raw)
  To: emacs-orgmode

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

 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Powershell scripting with org-babel
  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
  2020-02-11  1:59 ` Jack Kamm
  1 sibling, 1 reply; 6+ messages in thread
From: briangpowell . @ 2020-02-11  1:58 UTC (permalink / raw)
  To: MS Window; +Cc: emacs-orgmode

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

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: 1222 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Powershell scripting with org-babel
  2020-02-10 16:38 Powershell scripting with org-babel MS Window
  2020-02-11  1:58 ` briangpowell .
@ 2020-02-11  1:59 ` Jack Kamm
  1 sibling, 0 replies; 6+ messages in thread
From: Jack Kamm @ 2020-02-11  1:59 UTC (permalink / raw)
  To: MS Window, emacs-orgmode

Hi Klaus,

MS Window <ms.window@mailfence.com> writes:

> There is no explanation there I should put the configuration. The org-babel documentation is too brief for me as beginner to understand.

First, save that file somewhere. Then, in your emacs config, add the
directory containing ob-powershell.el to the `load-path' variable using
the function `add-to-list' [0]. Then, load ob-powershell using
`require'. Finally, add powershell to `org-babel-load-languages'
[1]. Then you should be able to execute powershell babel blocks.

Hope that helps,
Jack

[0] https://www.emacswiki.org/emacs/LoadPath
[1] https://orgmode.org/worg/org-contrib/babel/languages.html#configure

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Powershell scripting with org-babel
  2020-02-11  1:58 ` briangpowell .
@ 2020-02-11  3:32   ` George Mauer
  2020-02-11 10:36     ` briangpowell .
  0 siblings, 1 reply; 6+ messages in thread
From: George Mauer @ 2020-02-11  3:32 UTC (permalink / raw)
  To: MS Window, emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Powershell scripting with org-babel
  2020-02-11  3:32   ` George Mauer
@ 2020-02-11 10:36     ` briangpowell .
  2020-02-11 11:16       ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: briangpowell . @ 2020-02-11 10:36 UTC (permalink / raw)
  To: gmauer; +Cc: MS Window, emacs-orgmode

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

Damn straight it's "mature and appropriate"

MicroSoft has been found guilty of MANY crimes that set the software
industry back many years through serial acquisitions & monopolistic
practices

Corporate immaturity, unfair and illegal practices have driven the rise of
the Free Software Foundation, Emacs & OrgMode

It's why were all here using OrgMode and supporting it--its ALL about
freedom and free and open source software

MicroSoft PowerShell is a participation in immaturity & stupidity

It's fashioned off of shells that really work rather than stripped down
nonsense that Gates stole and called his own--i.e. "quick and dirty
DOS"--which still works a little bit, on worthless machines enslaved by
MicroSoft products

Grow up: MicroSoft products are evil and enslaving

Now that said, I've used PowerShell; but, only when I had to--I strongly
suggest you do the same

On Mon, Feb 10, 2020 at 10:33 PM George Mauer <gmauer@gmail.com> wrote:

> > 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: 4794 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Powershell scripting with org-babel
  2020-02-11 10:36     ` briangpowell .
@ 2020-02-11 11:16       ` Bastien
  0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2020-02-11 11:16 UTC (permalink / raw)
  To: briangpowell .; +Cc: gmauer, MS Window, emacs-orgmode

Hi Brian,

emacs-orgmode@gnu.org is for discussing Org bugs and features, not
free software in general.

Also, everyone here is encouraged to read and follow the GNU Kind
communication guidelines as a way to keep an appropriate attitude
when talking with each other:

https://www.gnu.org/philosophy/kind-communication.html

Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-11 11:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-02-11 10:36     ` briangpowell .
2020-02-11 11:16       ` Bastien
2020-02-11  1:59 ` Jack Kamm

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.