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

Disabling the Tilde-Expansion #106

Open
KGoodacre opened this issue Jun 14, 2024 · 1 comment
Open

Disabling the Tilde-Expansion #106

KGoodacre opened this issue Jun 14, 2024 · 1 comment

Comments

@KGoodacre
Copy link

KGoodacre commented Jun 14, 2024

When using tab autocomplete, how can I fix the bash completion so it’ll maintain the “~” instead of expanding the tilde, outputting the full home directory path name.

Running: Linux RedHat CentOS | Bash

Expected Behavior:

$ ~/Fol<TAB>
$ ~/Folder

Current Behavior:

$ ~/Fol<TAB>
$ /home/users/username/Folder

If there are common parts, the tilde appears in the FZF selection menu but once an option is chosen, the tilde is not preserved; instead it outputs the full expanded path.
Please provide a quick fix or point me to where I can alter this behavior; it’s frustrating when dealing with shared VMs and long path names.

@lincheney
Copy link
Owner

Unfortunately I am unable to reproduce this issue. The tilde is preserved when I do the bash tab completion.
You may have to try debug this yourself by adding some set -x to the script to see where it is going wrong.

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

No branches or pull requests

2 participants