Metadata-Version: 2.1
Name: auto-gpg
Version: 0.1.0
Summary: A tool that switches gpg home on different working directory
Author-email: GUO YANKE <hi@guoyk.xyz>
Project-URL: Homepage, https://github.com/guoyk93/auto-gpg
Project-URL: Bug Tracker, https://github.com/guoyk93/auto-gpg/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# auto-gpg

A tool that switches gpg home on different working directory

## Installation

```shell
pip install auto-gpg
```

## Usage

**Configuration**

Write configuration file `~/.auto-gpg`

```
~/Developer/src/github.com:~/.gnupgs/hi@guoyk.xyz
~/Developer/src/gitlab.mycompany.com:~/.gnupgs/guoyk@mycompany.com
```

**Execute `auto-gpg`**

`auto-gpg` invokes `gpg` command with `GNUPGHOME` environment variable, and the value of `GNUPGHOME` is determined by the configuration file above.

```shell
auto-gpg -k
auto-gpg -abs
# ...
```

**Configure `git`**

```shell
git config --global gpg.program auto-gpg
git config --global commit.gpgsign true
git config --global tag.gpgsign true
```

## Credits

GUO YANKE, MIT License
