Merge pull request #1 from sjourdan/fix_readme_cp

add sudo when required, remove redirection for cp
main
William BEUIL 2021-01-26 18:07:12 +01:00 committed by GitHub
commit c013c6c966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -164,10 +164,10 @@ Completion scripts are available to use inside the `completions` folder.
```console
# Linux:
$ cp completions/dctlenv.bash > /etc/bash_completion.d/dctlenv
$ sudo cp completions/dctlenv.bash /etc/bash_completion.d/dctlenv
# MacOS:
$ cp completions/dctlenv.bash > /usr/local/etc/bash_completion.d/dctlenv
$ sudo cp completions/dctlenv.bash /usr/local/etc/bash_completion.d/dctlenv
```
Remember to open a new shell to test the functionality.
@ -190,7 +190,7 @@ $ cp completions/dctlenv.zsh > fpath/completion_folder/_dctlenv
```console
$ mkdir -p ~/.oh-my-zsh/completions
$ cp completions/dctlenv.zsh > ~/.oh-my-zsh/completions/_dctlenv
$ cp completions/dctlenv.zsh ~/.oh-my-zsh/completions/_dctlenv
```
You will need to start a new shell for this setup to take effect.
@ -198,7 +198,7 @@ You will need to start a new shell for this setup to take effect.
### Fish
```console
$ cp completions/dctlenv.fish > ~/.config/fish/completions/dctlenv.fish
$ cp completions/dctlenv.fish ~/.config/fish/completions/dctlenv.fish
```
Remember to create the directory if it's not already there `mkdir -p ~/.config/fish/completions/`.