Skip to content

Conversation

@dezza
Copy link

@dezza dezza commented Jul 11, 2025

WHAT

Checks if $ENHANCD_ARG_HOME is configured. If there is zero args it won't trigger on cd as documented.

Before this PR $ENHANCD_ARG_HOME would not prevent cd triggering the interactive filter list, despite being documented.

Follows the similar documented behaviour of the other settings.

WHY

It is a bug. It is already documented behaviour:

enhancd/README.md

Lines 538 to 545 in 5afb4eb

<summary><strong><code>ENHANCD_ARG_HOME</code></strong></summary>
You can customize to trigger the argumentless `cd` behavior by giving the string specified by this environment variable as an argument. Default is empty string.
If you set this variable any but empty string, it gives you the behavior of `cd` with no argument; i.e. backward search of the whole directory-change history.
Then `cd` with no argument changes current directory to `$HOME` without interactive filter.
In other words, you can keep original behavior of `cd` with no argument by setting this option.

Last line confirms this.

In other words, you can keep original behavior of `cd` with no argument by setting this option.

@github-actions github-actions bot added area/bash Catch all for changes in bash files missing/fish Denotes a PR that needs to include changes against missing area labels Jul 11, 2025
@dezza
Copy link
Author

dezza commented Aug 9, 2025

@babarot you seeing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/bash Catch all for changes in bash files missing/fish Denotes a PR that needs to include changes against missing area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant