From e2c9b13fe5c60cbc47d0a201808f468f72429135 Mon Sep 17 00:00:00 2001
From: Pascal Zarrad
Date: Wed, 19 Feb 2020 22:32:27 +0100
Subject: [PATCH 1/2] Add a gpg fix for WSL users
---
plugins/wsl-gpg/plugin.sh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100755 plugins/wsl-gpg/plugin.sh
diff --git a/plugins/wsl-gpg/plugin.sh b/plugins/wsl-gpg/plugin.sh
new file mode 100755
index 0000000..0c47099
--- /dev/null
+++ b/plugins/wsl-gpg/plugin.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+#==================================================================
+# Script Name : wsl-gpg
+# Description : Plugin that puts a export into the .zshrc to use
+# the terminal for the gpg password prompt on wsl.
+# Args : -
+# Author : Pascal Zarrad
+# Email : P.Zarrad@outlook.de
+#==================================================================
+
+# This fix is only for WSL where gpg is unable to find a spot to prompt for
+# the password, so we add a environment variable to fix that.
+if grep -q "Microsoft" "/proc/version" || grep -q ".*microsoft-standard*." "/proc/version"
+ then
+ write_zshrc "export GPG_TTY=$(tty)"
+ echo "Applied wsl-gpg fix to support gpg on wsl!"
+fi
From b94e6a43f722b551c10c4bf43fce3c0fa9239d72 Mon Sep 17 00:00:00 2001
From: Pascal Zarrad
Date: Wed, 19 Feb 2020 23:00:18 +0100
Subject: [PATCH 2/2] Fix PR template
---
.github/PULL_REQUEST_TEMPLATE.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 65b83c2..b7c7dbb 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -12,7 +12,7 @@ What is the expected behavior that is expected by the changes of the PR?
- The installer does now x/y...
### Additional information
-Add here additional information if applicable or remove this section-
+Add here additional information if applicable or remove this section.
#### Checklist
Use the following checklist to ensure your PR meets all contribution requirements.