Skip to content

Duplicate Path Entry #224

@panv-00

Description

@panv-00

I am installing git-open in zsh using

zinit light paulirish/git-open

For some reason (could be related to my system) I am getting a duplicate of the git-open path in my $PATH variable..

A simple way to solve this is to modify git-open.plugin.zsh as per below:

# This plugin is MIT licensed to match the git-open license.
#
# Make git-open easy to install and keep up to date if you're using a
# ZSH framework like Zgen or Antigen

# export PATH=$(dirname $0):${PATH}

# avoid adding the path twice..
local NEW_PATH=$(dirname $0)

if [[ ":$PATH:" != *":$NEW_PATH:"* ]]; then
  export PATH="$NEW_PATH:$PATH"
fi

Would you be so kind and modify the main repo to solve my issue?

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