bash.scm 593 B

1234567891011121314151617181920212223242526
  1. (use-modules (gnu bash)
  2. (ice-9 format)
  3. (srfi srfi-41))
  4. (define-bash-function (hello)
  5. (display "hello")
  6. (newline))
  7. (define-bash-function (web)
  8. (format #t "~{web~a.intr~%~}"
  9. (delete 24 (stream->list (stream-range 15 38)))))
  10. (define %home
  11. (and=> (getenv "HOME")
  12. (lambda (home)
  13. home)))
  14. (add-to-load-path (string-append %home
  15. "/.local/share/chezmoi/dotfiles/guile"))
  16. (define-bash-function (run-vm-guix)
  17. ((@ (bash) run-vm-guix)))
  18. (define-bash-function (json-to-scm)
  19. ((@ (bash) json-to-scm)))