rekahsoft-gnu/packages/shellutils.scm: Add zsh-syntax-highlighting
This commit is contained in:
parent
4002a6bcef
commit
aa5bc5da9d
@ -132,3 +132,43 @@ Zsh prompt. It combines everything you may need for convenient work,
|
||||
without unecessary complications, like a real spaceship.")
|
||||
(home-page "https://github.com/denysdovhan/spaceship-prompt")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public zsh-syntax-highlighting
|
||||
(package
|
||||
(name "zsh-syntax-highlighting")
|
||||
(version "0.7.1")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/zsh-users/zsh-syntax-highlighting")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"039g3n59drk818ylcyvkciv8k9mf739cv6v4vis1h9fv9whbcmwl"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(delete 'build)
|
||||
(delete 'check)
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out")))
|
||||
(setenv "PREFIX" out)
|
||||
;; TODO: These 2 lines are required otherwise the build
|
||||
;; fails. This is due to the checkout is being modified, which
|
||||
;; is somehow an issue (but is unexpected
|
||||
(invoke "touch" "docs/all.md")
|
||||
(chmod "README.md" #o700)
|
||||
|
||||
(invoke "make" "install")))))))
|
||||
(synopsis "Fish shell-like syntax highlighting for Zsh")
|
||||
(description
|
||||
"This package provides syntax highlighting for the shell zsh. It enables
|
||||
highlighting of commands whilst they are typed at a zsh prompt into an
|
||||
interactive terminal. This helps in reviewing commands before running them,
|
||||
particularly in catching syntax errors.")
|
||||
(home-page "https://github.com/zsh-users/zsh-syntax-highlighting")
|
||||
(license license:bsd-3)))
|
||||
|
Loading…
Reference in New Issue
Block a user