WIP
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
rev = "762afacbf227ecd173e899d10a28a478b4c84a3f";
|
||||
sha256 = "1357hygrjwj5vd4cjdvxzrx967f1d2dbqm2rskbz5z1q6jri1hm3";
|
||||
}; # e.g., nix-prefetch-url --unpack https://github.com/marlonrichert/zsh-autocomplete/archive/762afacbf227ecd173e899d10a28a478b4c84a3f.tar.gz
|
||||
}
|
||||
];
|
||||
} ];
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
shellAliases = {
|
||||
@@ -25,10 +24,11 @@
|
||||
enable = true;
|
||||
theme = "robbyrussell";
|
||||
extraConfig = ''
|
||||
# Required for autocomplete with box: https://unix.stackexchange.com/a/778868
|
||||
Required for autocomplete with box: https://unix.stackexchange.com/a/778868
|
||||
zstyle ':completion:*' completer _expand _complete _ignored _approximate _expand_alias
|
||||
zstyle ':autocomplete:*' default-context curcontext
|
||||
zstyle ':autocomplete:*' min-input 0
|
||||
# zstyle ':autocomplete:*' automatic no
|
||||
|
||||
setopt HIST_FIND_NO_DUPS
|
||||
|
||||
@@ -39,5 +39,14 @@
|
||||
setopt globdots # show dotfiles in autocomplete list
|
||||
'';
|
||||
};
|
||||
initContent = ''
|
||||
# Oh-My-Posh initialization for Zsh
|
||||
eval "$(oh-my-posh init zsh --config /home/biscuit/.config/oh-my-posh/config.omp.json)"
|
||||
|
||||
# zsh-autocomplete
|
||||
bindkey -M menuselect '^M' .accept-line # run code when selected completion
|
||||
bindkey '^I' autocomplete-manual
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user