From fd3ba99ffca8acfd5ee8eeeef409faf262f61dec Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 31 Jul 2023 10:35:12 +0300 Subject: [PATCH] feat(gpg): gpg, gpg-tui, configs, git-crypt --- .gitattributes | 6 ++++++ Brewfile | 6 ++++++ config/gpg-tui/gpg-tui.toml | 32 ++++++++++++++++++++++++++++++++ secrets/.gitkeep | Bin 0 -> 22 bytes 4 files changed, 44 insertions(+) create mode 100644 config/gpg-tui/gpg-tui.toml create mode 100644 secrets/.gitkeep diff --git a/.gitattributes b/.gitattributes index c568bd7..dd181ce 100644 --- a/.gitattributes +++ b/.gitattributes @@ -219,3 +219,9 @@ git/* text **/git/* text **/alias text ssh/* text + +# Git Crypt special files +*-secret filter=git-crypt diff=git-crypt +*.key filter=git-crypt diff=git-crypt +secrets/** filter=git-crypt diff=git-crypt + diff --git a/Brewfile b/Brewfile index 78c8927..7836645 100644 --- a/Brewfile +++ b/Brewfile @@ -122,6 +122,8 @@ brew "gdu" brew "gh" # Distributed revision control system brew "git" +# Enable transparent encryption/decryption of files in a git repo +brew "git-crypt" # Small git utilities brew "git-extras" # See your latest local git branches, formatted real fancy @@ -142,6 +144,8 @@ brew "gnupg" brew "go" # Library access to GnuPG brew "gpgme" +# Manage your GnuPG keys with ease! +brew "gpg-tui" # Image manipulation brew "netpbm" # C/C++ and Java libraries for Unicode and globalization @@ -276,6 +280,8 @@ brew "wget" brew "wtfutil" # Check your $HOME for unwanted files and directories brew "xdg-ninja" +# Hackable, minimal, fast TUI file explorer +brew "xplr" # JavaScript package manager brew "yarn" # A vulnerability scanner for container images and filesystems diff --git a/config/gpg-tui/gpg-tui.toml b/config/gpg-tui/gpg-tui.toml new file mode 100644 index 0000000..4640cdd --- /dev/null +++ b/config/gpg-tui/gpg-tui.toml @@ -0,0 +1,32 @@ +[general] + splash = false + tick_rate = 250 + color = "gray" + style = "plain" + file_explorer = "xplr" + detail_level = "minimum" + # key_bindings = [ + # { keys = [ "?" ], command = ":help" }, + # { keys = [ "o" ], command = ":options" }, + # { keys = [ "n" ], command = ":normal" }, + # { keys = [ "v" ], command = ":visual" }, + # { keys = [ "c" ], command = ":copy" }, + # { keys = [ "p", "C-v" ], command = ":paste" }, + # { keys = [ "x" ], command = ":export" }, + # { keys = [ "s" ], command = ":set prompt :sign" }, + # { keys = [ "e" ], command = ":set prompt :edit" }, + # { keys = [ "i" ], command = ":set prompt :import"}, + # { keys = [ "f" ], command = ":set prompt :receive" }, + # { keys = [ "u" ], command = ":set prompt :send" }, + # { keys = [ "g" ], command = ":generate" }, + # { keys = [ "d", "backspace" ], command = ":delete" }, + # { keys = [ "C-r" ], command = ":refresh" }, + # ] + +[gpg] + armor = false + # homedir = "~/.gnupg" + # outdir = "~/.gnupg/out" + # outfile = "{type}_{query}.{ext}" + # default_key = "0xA1B2C3XY" + diff --git a/secrets/.gitkeep b/secrets/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..36853e970ea68a9bd5a8c72404017a5378429752 GIT binary patch literal 22 dcmZQ@_Y83kiVO&0u*rQ@zv8Hey7;FH_W)A42^;_b literal 0 HcmV?d00001