From 0d0b192dcd54395acd5f829efb077f7903da883c Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 8 Sep 2023 02:16:20 -0500 Subject: [PATCH] feat(zsh): add zsh nix shell --- .gitmodules | 3 +++ dots/.config/zsh/config/plugins/init.zsh | 5 ++++- dots/.config/zsh/config/plugins/zsh-nix-shell | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 160000 dots/.config/zsh/config/plugins/zsh-nix-shell diff --git a/.gitmodules b/.gitmodules index 2c46a7f2..e65e8c30 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "dots/.config/zsh/config/themes/powerlevel10k"] path = dots/.config/zsh/config/themes/powerlevel10k url = https://github.com/romkatv/powerlevel10k.git +[submodule "dots/.config/zsh/config/plugins/zsh-nix-shell"] + path = dots/.config/zsh/config/plugins/zsh-nix-shell + url = https://github.com/chisui/zsh-nix-shell diff --git a/dots/.config/zsh/config/plugins/init.zsh b/dots/.config/zsh/config/plugins/init.zsh index 085dd0e9..6f42476e 100644 --- a/dots/.config/zsh/config/plugins/init.zsh +++ b/dots/.config/zsh/config/plugins/init.zsh @@ -1,4 +1,6 @@ -configure() {} +configure() { + prompt_nix_shell_setup +} init() { local wkdir="${BASE_ZSH_CONFIG_DIR}/config/plugins" @@ -7,6 +9,7 @@ init() { source "${wkdir}/zsh-completions/zsh-completions.plugin.zsh" source "${wkdir}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" source "${wkdir}/nix-zsh-completions/nix.plugin.zsh" + source "${wkdir}/zsh-nix-shell/nix-shell.plugin.zsh" # export PATH="${PATH}:${wkdir}/forgit/bin" # source "${wkdir}/forgit/forgit.plugin.zsh" diff --git a/dots/.config/zsh/config/plugins/zsh-nix-shell b/dots/.config/zsh/config/plugins/zsh-nix-shell new file mode 160000 index 00000000..406ce293 --- /dev/null +++ b/dots/.config/zsh/config/plugins/zsh-nix-shell @@ -0,0 +1 @@ +Subproject commit 406ce293f5302fdebca56f8c59ec615743260604