]> git.rmz.io Git - dotfiles.git/commitdiff
ranger: support gpg files in scope.sh
authorSamir Benmendil <me@rmz.io>
Fri, 13 Jan 2023 00:22:43 +0000 (00:22 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 02:35:28 +0000 (02:35 +0000)
ranger/scope.sh

index 2e9983ee280d9ec6c65d58bad854ef309e331206..ff3465b6402d2b3510c73655db4b4ea61ba31eb5 100755 (executable)
@@ -107,6 +107,11 @@ handle_extension() {
             pandoc -s -t markdown -- "${FILE_PATH}" && exit 5
             ;;
 
+        # GnuPG
+        gpg)
+            gpg --decrypt "$path" | trim && exit 5
+            ;;
+
         ## JSON
         json)
             jq --color-output . "${FILE_PATH}" && exit 5