Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix a duplicate path addition #4

Merged
merged 1 commit into from
Jul 17, 2022

Conversation

a5ob7r
Copy link
Contributor

@a5ob7r a5ob7r commented Apr 10, 2022

The previous path addition doesn't have a guard statement. It probably spawns value duplicated $PATH such as PATH=/a/path:~/.exa/bin:~/.exa/bin:~/.exa/bin when runs nested zsh. So adds a guard statement to check whether or not the exa bin directory path exists in $PATH.

$PATH is exported by default, so no need to re-export explicitly. And $path is a tied variable to $PATH, so we can think as it is exported too.

The previous path addition doesn't have a guard statement. It probably
spawns value duplicated $PATH such as
'PATH=/a/path:~/.exa/bin:~/.exa/bin:~/.exa/bin' when runs nested zsh. So
adds a guard statement to check whether or not the exa bin directory
path exists in $PATH.

$PATH is exported by default, so no need to re-export explicitly. And
$path is a tied variable to $PATH, so we can think as it is exported
too.
Copy link
Owner

@ptavares ptavares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for contribution

@ptavares ptavares merged commit 6888b6d into ptavares:main Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants