Skip to main content

A tool that switches gpg home on different working directory

Project description

auto-gpg

A tool that switches gpg home on different working directory

Installation

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.

auto-gpg -k
auto-gpg -abs
# ...

Configure git

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

Credits

GUO YANKE, MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto-gpg-0.1.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

auto_gpg-0.1.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page