feat(zsh): add zsh nix shell

This commit is contained in:
Price Hiller 2023-09-08 02:16:20 -05:00
parent d0117cb223
commit 0d0b192dcd
No known key found for this signature in database
3 changed files with 8 additions and 1 deletions

3
.gitmodules vendored
View File

@ -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

View File

@ -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"

@ -0,0 +1 @@
Subproject commit 406ce293f5302fdebca56f8c59ec615743260604