From 04a94c47059ec1924324dee5455c4e36c6c12a84 Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 26 Mar 2022 01:41:15 +0100 Subject: [PATCH] zsh,nix: source nix.sh from user's nix-profile add 'chisui/zsh-nix-shell' and 'spwhitt/nix-zsh-completions' plugins with sheldon --- .config/sheldon/plugins.toml | 6 ++++++ .zshrc | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.config/sheldon/plugins.toml b/.config/sheldon/plugins.toml index afbd84d..4dc7714 100644 --- a/.config/sheldon/plugins.toml +++ b/.config/sheldon/plugins.toml @@ -17,5 +17,11 @@ github = 'djui/alias-tips' [plugins.fast-syntax-highlighting] github = 'zdharma-continuum/fast-syntax-highlighting' +[plugins.zsh-nix-shell] +github = 'chisui/zsh-nix-shell' + +[plugins.nix-zsh-completions] +github = 'spwhitt/nix-zsh-completions' + [plugins.zsh-vi-mode] github = 'jeffreytse/zsh-vi-mode' diff --git a/.zshrc b/.zshrc index 9bc80d4..e961ad3 100644 --- a/.zshrc +++ b/.zshrc @@ -197,3 +197,5 @@ } eval "$(starship init zsh)" + + if [ -e ~/.nix-profile/etc/profile.d/nix.sh ]; then . ~/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer...and kept by me