Skip to content

Commit

Permalink
Simplify zsh-completion-fix.nix using sharedModules
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Sep 28, 2024
1 parent f758380 commit e5ca39a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nix-darwin/zsh-completion-fix.nix
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit e5ca39a

Please sign in to comment.