zsh: fix nix completions
This commit is contained in:
parent
77c24a7596
commit
92185de8d8
Binary file not shown.
@ -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 = {
|
||||||
|
@ -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
|
||||||
$ "
|
$ "
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user