summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.zsh10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions.zsh b/functions.zsh
index 3ecc3c9..e5942f0 100644
--- a/functions.zsh
+++ b/functions.zsh
@@ -32,5 +32,13 @@ eunpack() {
PORTAGE_GRPNAME=${USER} \
FEATURES="unprivileged" \
PORTAGE_TMPDIR="${2:-.}" \
- ebuild $(equery which "${1}") clean unpack
+ ebuild ${pkg} clean unpack
+}
+
+encrypt() {
+ sq encrypt --for-self --without-signature "$@"
+}
+
+decrypt() {
+ sq decrypt "$@"
}