zsh,nix: source nix.sh from user's nix-profile

add 'chisui/zsh-nix-shell' and 'spwhitt/nix-zsh-completions' plugins
with sheldon
This commit is contained in:
surtur 2022-03-26 01:41:15 +01:00
parent e4a745d5fb
commit 04a94c4705
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 8 additions and 0 deletions

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

2
.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