aboutsummaryrefslogtreecommitdiff
path: root/tw
diff options
context:
space:
mode:
Diffstat (limited to 'tw')
-rw-r--r--tw/home/common.scm4
-rw-r--r--tw/packages/shell.scm60
2 files changed, 43 insertions, 21 deletions
diff --git a/tw/home/common.scm b/tw/home/common.scm
index 4aee687c..46cf8799 100644
--- a/tw/home/common.scm
+++ b/tw/home/common.scm
@@ -29,8 +29,8 @@
ranger python-pygments python-pillow mediainfo python-pdftotext
;; Shell
- zsh zsh-autosuggestions zsh-syntax-highlighting zsh-autopair
- zsh-completions))
+ zsh zsh-autosuggestions zsh-history-substring-search
+ zsh-syntax-highlighting zsh-completions))
(export gnupg-services) ; there doesn't seem to be a `define*-public' macro
(define* (gnupg-services #:key gui-pinentry?)
diff --git a/tw/packages/shell.scm b/tw/packages/shell.scm
index b1ea15f9..d46820d6 100644
--- a/tw/packages/shell.scm
+++ b/tw/packages/shell.scm
@@ -7,24 +7,46 @@
(define-public zsh-completions
(package
- (name "zsh-completions")
- (version "0.34.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/zsh-users/zsh-completions")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256 (base32 "0jjgvzj3v31yibjmq50s80s3sqi4d91yin45pvn3fpnihcrinam9"))))
- (build-system copy-build-system)
- (arguments '(#:install-plan '(("src/" "share/zsh/site-functions/")
- ("README.md" "share/doc/zsh-completions/"))))
- (inputs (list zsh))
- (home-page "https://github.com/zsh-users/zsh-completions")
- (description "Additional completion definitions for Zsh")
- (synopsis "This projects aims at gathering/developing new
+ (name "zsh-completions")
+ (version "0.34.0")
+ (home-page "https://github.com/zsh-users/zsh-completions")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit version)))
+ (file-name (git-file-name name version))
+ (sha256 (base32 "0jjgvzj3v31yibjmq50s80s3sqi4d91yin45pvn3fpnihcrinam9"))))
+ (build-system copy-build-system)
+ (arguments '(#:install-plan '(("src/" "share/zsh/site-functions/")
+ ("README.md" "share/doc/zsh-completions/"))))
+ (synopsis "Additional completion definitions for Zsh")
+ (description "This projects aims at gathering/developing new
completion scripts that are not available in Zsh yet. The scripts may
be contributed to the Zsh project when stable enough.")
- (license (license:non-copyleft
- "file://LICENSE"
- "Custom BSD-like, permissive, non-copyleft license."))))
+ (license (license:non-copyleft
+ "file://LICENSE"
+ "Custom BSD-like, permissive, non-copyleft license."))))
+
+(define-public zsh-history-substring-search
+ (package
+ (name "zsh-history-substring-search")
+ (version "1.0.2")
+ (home-page "https://github.com/zsh-users/zsh-history-substring-search")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256 (base32 "0y8va5kc2ram38hbk2cibkk64ffrabfv1sh4xm7pjspsba9n5p1y"))))
+ (build-system copy-build-system)
+ (arguments '(#:install-plan
+ '(("zsh-history-substring-search.plugin.zsh"
+ "share/zsh/plugins/zsh-history-substring-search/")
+ ("zsh-history-substring-search.zsh"
+ "share/zsh/plugins/zsh-history-substring-search/")
+ ("README.md"
+ "share/doc/zsh-history-substring-search/"))))
+ (synopsis "ZSH port of Fish history search (up arrow)")
+ (description "This is a clean-room implementation of the Fish shell's
+history search feature, where you can type in any part of any command from
+history and then press chosen keys, such as the UP and DOWN arrows, to cycle
+through matches.")
+ (license license:bsd-3)))