-
Notifications
You must be signed in to change notification settings - Fork 516
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
Problem with --autocompletion #3238
Comments
There is no way to specify the path and this restriction comes from the package, So, marking this issue as |
I disagree, I find it quite unusual for a package to directly edit the bashrc file. A simple workaround like overriding HOME should be enough but for some reason it was not picked up. I wont reopen though. thanks |
That is why it is a flag, clearly indicates what it is going to do, if you don't want it don't use it - autocompletion is not forced. |
Of course I want autocompletion otherwise I wouldn't have opened this issue. Most programs just provide autocompletion files and then they get loaded. The problem here is that mc insists on writing in a specific location that is not available in my case and ignores basic environment variables like $HOME. |
Unfortunately its not an mc issue @teto its the library issue which doesn't provide a way to override the HOME dir. You can manually add autocompletion by just making an entry in .bashrc wherever it might be located
This is a terrible approach by those programs we don't expect you to install new things, |
thanks the latter |
hum I've added |
Expected behavior
I am trying to install the autocompletion for the nixos package
https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/minio-client/default.nix
I would like the client to let me specify where to write (or just dump to stdout) the autocompletion script.
Actual behavior
mc tries to write to my .bashrc that is readonly (it's generated by nix and put readonly specifically to prevent anyone tampering with it). I've tried setting HOME / USER / SHELLRC to different values but
mc --autocompletion
always tries to write at/home/teto
Steps to reproduce the behavior
set your ~/.bashrc readonly and run
mc --autocompletion
mc --version
mc --version
)System information
nixos-unstable (www.nixos.org)
The text was updated successfully, but these errors were encountered: