`rclone completion` add option to write its output to stdout

rclone completion writes its output to typical Linux destination, e.g. rclone completion bash to /etc/bash_completion.d/rclone which is not the right path on macOS where it is usually $(brew --prefix)/etc/bash_completion.d .

I do not expect rclone to deal with macOS oddities but it would be nice if rclone completion could write its output to terminal. This way user could easily redirect it to whatever file location needed.

At the moment it is not possible to generate completions on macOS:

$ rclone completion bash
2025/08/19 21:51:30 CRITICAL: open /etc/bash_completion.d/rclone: no such file or directory

You should be able to do

rclone completion bash -

To write to stdout or put a file name.

1 Like

Thank you for pointing me into the right direction:) Indeed it works.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.