/ob-powershell

Emacs Babel Powershell implementation

Primary LanguageEmacs LispMIT LicenseMIT

ob-powershell

Execute powershell commands from org mode source blocks.

Setup

Install from melpa

With use-package just add the declaration

(use-package ob-powershell)

Install from source

  • clone from github
  • add to load path
(add-to-list 'load-path "~/.emacs.d/lisp/ob-powershell")
  • add to your .emacs:
(require 'ob-powershell)

Add powershell to babel languages

(org-babel-do-load-languages
 'org-babel-load-languages
 (quote (
         ;; ...
         (powershell . t))))

Usage

Add a source block with powershell language:

#+name: get-env-path
#+begin_src powershell
echo $env:path
#+end_src

And execute it using org-babel-execute-src-block.