Skip to content

init.zsh just adds an empty string to the beginning of fpath #1

@ericbn

Description

@ericbn

Hi. Thanks for your contribution and for adhering to the module format that zimfw uses!

A note on your init.zsh file:

# This module provides completions for gcloud.

# Zimfw sets the `$zmodule` variable to the path of the current module.
# We add this path to the Zsh function path (`fpath`).
#
# Zsh's completion system will automatically find the `_gcloud` file
# inside the `functions` subdirectory of any directory in the fpath.

fpath=("$zmodule" $fpath)

Zimfw does not set a $zmodule variable and this code actually just adds an empty string to the beginning of fpath. See:

$ print ${fpath[1]}

$ print "\n- ${^fpath[@]}"

-
- /opt/homebrew/share/zsh/site-functions
- ...

You can delete your init.zsh file entirely. It's not required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions