mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
Simplify zsh-completion-fix.nix using sharedModules
Refs, - https://github.com/nix-community/home-manager/issues/2562. - https://github.com/nix-community/home-manager/pull/5458
This commit is contained in:
parent
f758380c0d
commit
e5ca39aab6
1 changed files with 4 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# Fix broken autocompletion. See https://github.com/nix-community/home-manager/issues/2562.
|
||||
{ flake, ... }:
|
||||
|
||||
# Fix broken autocompletion in home-manager zsh.
|
||||
# See https://github.com/nix-community/home-manager/issues/2562.
|
||||
# TODO: Remove this after https://github.com/nix-community/home-manager/pull/5458
|
||||
{
|
||||
home-manager.users.${flake.config.people.myself}.imports = [
|
||||
home-manager.sharedModules = [
|
||||
({ config, ... }: {
|
||||
programs.zsh.initExtraBeforeCompInit = ''
|
||||
fpath+=("${config.home.profileDirectory}"/share/zsh/site-functions "${config.home.profileDirectory}"/share/zsh/$ZSH_VERSION/functions "${config.home.profileDirectory}"/share/zsh/vendor-completions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue