diff options
Diffstat (limited to 'modules/shell')
-rw-r--r-- | modules/shell/zsh/zshrc.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/shell/zsh/zshrc.nix b/modules/shell/zsh/zshrc.nix index a91236d900cb..9328f7fb363d 100644 --- a/modules/shell/zsh/zshrc.nix +++ b/modules/shell/zsh/zshrc.nix @@ -1,8 +1,8 @@ { stdenv, lib +, any-nix-shell , coreutils , zsh-autosuggestions , zsh-history-substring-search -, zsh-nix-shell , zsh-syntax-highlighting }: @@ -116,7 +116,7 @@ zle -N self-insert url-quote-magic autoload -Uz compinit compinit -d "$XDG_CACHE_HOME/zsh/zcompdump" -source ${zsh-nix-shell}/share/zsh-nix-shell/nix-shell.plugin.zsh +eval "$(${any-nix-shell}/bin/any-nix-shell zsh --info-right)" source ${zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ${zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh source ${zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh @@ -188,6 +188,6 @@ done # Prompt nl=$'\n' -PS1="%F{yellow}%(?..[exit %?]$nl)''${IN_NIX_SHELL+[nix-shell''${NIX_SHELL_PACKAGES:+($NIX_SHELL_PACKAGES)}] }%1(j.[%j job%2(j.s.)] .)%f%# " +PS1="%F{yellow}%(?..[exit %?]$nl)%1(j.[%j job%2(j.s.)] .)%f%# " '' |