commit cea82d3ec36cab383fd8ea77befaabdffda9f96b
parent 1283b3a3c03855dec5dba36ce75f037b540adf56
Author: Vincent Demeester <vincent@sbr.pm>
Date: Tue, 28 Apr 2020 02:06:42 +0200
zsh: add zsh-nix-shell
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/modules/profiles/zsh.nix b/modules/profiles/zsh.nix
@@ -78,7 +78,6 @@ in
sha256 = "04skzxv8j06f1snsx62qnca5f2183w0wfs5kz78rs8hkcyd6g89w";
};
}
- # romkatv/powerlevel10k
{
name = "powerlevel10k";
src = pkgs.fetchFromGitHub {
@@ -88,6 +87,15 @@ in
sha256 = "011ja4r3a8vbcs42js9nri4p8pi8z4ccqxl2qyf52pn3pfnidigj";
};
}
+ {
+ name = "zsh-nix-shell";
+ src = pkgs.fetchFromGitHub {
+ owner = "chisui";
+ repo = "zsh-nix-shell";
+ rev = "v0.1.0";
+ sha256 = "0snhch9hfy83d4amkyxx33izvkhbwmindy0zjjk28hih1a9l2jmx";
+ };
+ }
];
envExtra = ''
export GOPATH=${config.home.homeDirectory}
@@ -125,6 +133,7 @@ in
fi
# make sure navigation using emacs keybindings works on all non-alphanumerics
# syntax highlighting
+ source $HOME/${config.programs.zsh.dotDir}/plugins/zsh-nix-shell/nix-shell.plugin.zsh
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
ZSH_HIGHLIGHT_PATTERNS+=('rm -fR *' 'fg=white,bold,bg=red')