Execute powershell commands from org mode source blocks.
With use-package
just add the declaration
(use-package ob-powershell)
- clone from github
- add to load path
(add-to-list 'load-path "~/.emacs.d/lisp/ob-powershell")
- add to your
.emacs
:
(require 'ob-powershell)
(org-babel-do-load-languages
'org-babel-load-languages
(quote (
;; ...
(powershell . t))))
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
.