浏览代码

nixpkgs/zsh: add completions for programs in ~/.nix-profile

Thomas Dy 2 年之前
父节点
当前提交
44152b2c8f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .config/nixpkgs/zsh/flake.nix

+ 2 - 0
.config/nixpkgs/zsh/flake.nix

@@ -25,6 +25,8 @@
             source ${nix-zsh-completions}/share/zsh/plugins/nix/nix-zsh-completions.plugin.zsh
             fpath+=(${nix-zsh-completions}/share/zsh/site-functions)
 
+            fpath+=(~/.nix-profile/share/zsh/site-functions)
+
             autoload -U compinit && compinit
 
             source ${zsh-bd}/share/zsh-bd/bd.plugin.zsh