influxdata / influxdata/docs-v2

Auto-completion documentation contains a wrong source command

Open
#3,688 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

product:v2-cloud
Dominant language
JavaScript
Stars
82
Forks
326
Avg merge
1d 1h
Merged PRs (30d)
82

Description

Hi, the source command on debian/ubuntu under bash returns an error as it's a directory
```
source /etc/bash_completion.d
-bash: source: /etc/bash_completion.d: is a directory
```
Thus it can be probably removed from a few occurrences and only keep the `source <(influx completion bash)`

##### Relevant URLs
- https://docs.influxdata.com/influxdb/v2.1/reference/cli/influx/completion/

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the linked InfluxDB CLI completion documentation page and locate the Debian/Ubuntu bash instructions. Remove the erroneous `source /etc/bash_completion.d` occurrences while retaining `source <(influx completion bash)`; done means the documented command no longer treats the directory as a source file.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.