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

Use built-in zsh function to get absolute dir path #136

Closed
wants to merge 2 commits into from
Closed

Use built-in zsh function to get absolute dir path #136

wants to merge 2 commits into from

Conversation

a4z
Copy link

@a4z a4z commented Mar 11, 2021

This should fix #135 for zsh
There is no need to change the directory, please see https://linux.die.net/man/1/zshexpn for explanation

a4z added 2 commits March 11, 2021 19:41
This should fix #135 for zsh 
There is on need to change the directory, please see https://linux.die.net/man/1/zshexpn for explanation
This update has been forgotten to commit in the first commit of this PR
Now it works exactly as the original version, but does not change the directory to get the absolute directory name
@delgurth delgurth mentioned this pull request Apr 6, 2021
@halcyon halcyon changed the title Use buildin zsh function to get absolute dir path Use built-in zsh function to get absolute dir path Apr 6, 2021
@halcyon
Copy link
Owner

halcyon commented Apr 6, 2021

This is awesome! Thank you!

Copy link
Owner

@halcyon halcyon left a comment

Choose a reason for hiding this comment

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

Thanks to your insight into zsh's :A, the absolute_dir_path function is no longer needed. Please remove absolute_dir_path and inline :A where this function is used. Thank you!

delgurth added a commit to delgurth/asdf-java that referenced this pull request Apr 6, 2021
@delgurth
Copy link
Contributor

delgurth commented Apr 6, 2021

I've made the requested changes in a new pull request (#144 as listed in the mentions), since I can't edit this one :(

@halcyon please also check #138 #140 #142 and #143

halcyon pushed a commit that referenced this pull request Apr 6, 2021
@halcyon
Copy link
Owner

halcyon commented Apr 6, 2021

Merged #144

@halcyon halcyon closed this Apr 6, 2021
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.

asdf_update_java_home precmd hook changes directory on every command
3 participants