zsh: fix nix completions

This commit is contained in:
Alexander Bantyev 2021-11-21 21:44:14 +03:00
parent 77c24a7596
commit 92185de8d8
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 2 additions and 11 deletions

Binary file not shown.

View File

@ -1,11 +1,6 @@
{ config, pkgs, lib, ... }: { { config, pkgs, lib, ... }: {
home-manager.users.balsoft = { home-manager.users.balsoft = {
programs.nix-index.enable = true;
programs.command-not-found = {
enable = true;
dbPath = ../../misc/programs.sqlite;
};
}; };
environment.sessionVariables = { environment.sessionVariables = {

View File

@ -8,7 +8,7 @@
home-manager.users.balsoft.programs.zsh = { home-manager.users.balsoft.programs.zsh = {
enable = true; enable = true;
enableAutosuggestions = true; # enableAutosuggestions = true;
enableCompletion = true; enableCompletion = true;
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
@ -121,10 +121,6 @@
function is() { nix search "self#$1" } function is() { nix search "self#$1" }
function rs() { repl self } function rs() { repl self }
source ${pkgs.nix-zsh-completions}/share/zsh/plugins/nix/nix-zsh-completions.plugin.zsh
fpath=(${pkgs.nix-zsh-completions}/share/zsh/site-functions $fpath)
autoload -U compinit && compinit
PS1="$PS1 PS1="$PS1
$ " $ "
''; '';