Skip to content

Commit

Permalink
Add steps to enable shell completion to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepqr committed Aug 22, 2021
1 parent 943765b commit cb90311
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ See `ambient --help` for more.
`backfill` does not overwrite files. You must manually delete them if
you want fresh copies for some reason. `today` and `yesterday` overwrite.

### Shell completion

You can optionally enable shell completion by running the appropriate command
for your shell:

```bash
eval "$(_AMBIENT_COMPLETE=bash_source ambient)" >> ~/.bashrc # bash
eval "$(_AMBIENT_COMPLETE=zsh_source ambient)" >> ~/.zshrc # zsh
_AMBIENT_COMPLETE=fish_source foo-bar > ~/.config/fish/completions/ambient.fish # fish
```

## Automation with Github Actions

1. Create a new repository, run `ambient backfill` then check everything in
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ambient-archiver
version = 0.1.3
version = 0.1.4
description = Archive your data from ambientweather.net
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit cb90311

Please sign in to comment.