feat: add zsh-nix-shell plugin

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-01-30 10:04:58 +01:00
parent 99ba3631f3
commit a7073f5dbc
Signed by: lander
GPG key ID: 0142722B4B0C536F

View file

@ -1,3 +1,4 @@
{ pkgs, ... }:
{
programs = {
zsh = {
@ -17,6 +18,19 @@
path = "$HOME/.cache/zsh_history";
};
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.8.0";
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
};
}
];
initExtra = ''
bindkey '^[[1;5C' forward-word # Ctrl+RightArrow
bindkey '^[[1;5D' backward-word # Ctrl+LeftArrow