mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-03 07:23:32 +00:00
zsh-stripped: init
Patched version of ZSH that provides remote file completion and special handling for special chars such as # or ^
This commit is contained in:
parent
7edb5c6f37
commit
68bdc4f3f0
4 changed files with 91 additions and 9 deletions
34
pkgs/zsh-stripped/package.nix
Normal file
34
pkgs/zsh-stripped/package.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
lib,
|
||||
zsh,
|
||||
...
|
||||
}:
|
||||
zsh.overrideAttrs (old: {
|
||||
patches =
|
||||
(old.patches or [])
|
||||
++ [
|
||||
./0001-globquote.patch
|
||||
|
||||
# From:
|
||||
# <https://github.com/fugidev/nix-config>
|
||||
./0001-remote-complete-files.patch
|
||||
];
|
||||
|
||||
postConfigure =
|
||||
(old.postConfigure or "")
|
||||
+ ''
|
||||
# Find all instances of name=zsh/newuser in config.modules
|
||||
# remove them.
|
||||
sed -i -e '/^name=zsh\/newuser/d' config.modules
|
||||
|
||||
# Also remove the newuser script to try and save some space
|
||||
# it doesn't amount to much, but every little bit counts.
|
||||
rm Scripts/newuser
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Patched version of zsh with globquote and remote file completion";
|
||||
mainProgram = "zsh";
|
||||
maintainers = with lib.maintainers; [NotAShelf];
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue