mirror of
https://github.com/angt/secret
synced 2025-02-11 08:48:13 +01:00
Completion also works in zsh
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
ddf55fa08e
commit
6c27a5ca3d
1 changed files with 11 additions and 10 deletions
21
README.md
21
README.md
|
@ -1,21 +1,17 @@
|
||||||
# secret
|
# secret
|
||||||
|
|
||||||
Keep your little secrets.
|
A simple and tiny tool that will help you keep your little secrets.
|
||||||
|
|
||||||
## Compatibility
|
|
||||||
|
|
||||||
`secret` should work on a wide variety of architectures and POSIX systems.
|
|
||||||
It was successfully tested on Linux, OpenBSD, FreeBSD and MacOS.
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
`secret` is the simplest secret store you can think of:
|
`secret` is the simplest secret store you can think of.
|
||||||
|
But it does have some interesting features:
|
||||||
|
|
||||||
- Requires only one file `~/.secret` that you can share publicly without fear.
|
- Requires only one file `~/.secret` that you can share publicly without fear.
|
||||||
- No configuration. Get back your file and you're done.
|
- No configuration. Get back your file and you're done.
|
||||||
- Secret names (usually hostname, mail, login, etc.) are also encrypted.
|
- Secret names (usually hostname, mail, login, etc.) are also encrypted.
|
||||||
- A secret agent that only trusts subprocesses. Not all the processes of the same user!
|
- A secret agent that only trusts subprocesses. Not all the processes of the same user!
|
||||||
- Secret names completion (on bash only) once the agent is activated.
|
- Secret names completion is available after calling the secret agent.
|
||||||
- Supports unstored secrets. Derived from some simple keys and a passphrase.
|
- Supports unstored secrets. Derived from some simple keys and a passphrase.
|
||||||
- Supports multiple passphrases. Not super user-friendly but nice to have.
|
- Supports multiple passphrases. Not super user-friendly but nice to have.
|
||||||
- Depends only on the [libhydrogen](https://libhydrogen.org/) library.
|
- Depends only on the [libhydrogen](https://libhydrogen.org/) library.
|
||||||
|
@ -23,6 +19,9 @@ It was successfully tested on Linux, OpenBSD, FreeBSD and MacOS.
|
||||||
|
|
||||||
## Build and install
|
## Build and install
|
||||||
|
|
||||||
|
This should work on a wide variety of architectures and POSIX systems.
|
||||||
|
It was successfully tested on Linux, OpenBSD, FreeBSD and MacOS.
|
||||||
|
|
||||||
Clone the repository recursively:
|
Clone the repository recursively:
|
||||||
|
|
||||||
$ git clone https://github.com/angt/secret --recursive
|
$ git clone https://github.com/angt/secret --recursive
|
||||||
|
@ -34,12 +33,14 @@ Then, run as `root`:
|
||||||
|
|
||||||
As usual, you can customize the destination with `DESTDIR` and `prefix`.
|
As usual, you can customize the destination with `DESTDIR` and `prefix`.
|
||||||
|
|
||||||
Currently, bash completion is not installed.
|
If you want the tab completion in `bash`, you have to do it manually for now.
|
||||||
Download the file [argz.sh](argz/argz.sh) then:
|
Luckily, it's super easy! Just download the file [argz.sh](argz/argz.sh) and then:
|
||||||
|
|
||||||
$ . argz.sh
|
$ . argz.sh
|
||||||
$ complete -F _argz secret
|
$ complete -F _argz secret
|
||||||
|
|
||||||
|
It's exactly the same for `zsh` if you have enabled `bashcompinit'.
|
||||||
|
|
||||||
Completion for secrets is only available in a trusted shell. See below.
|
Completion for secrets is only available in a trusted shell. See below.
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
Loading…
Add table
Reference in a new issue