This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
# shadow script that does three things: | |
# - 'age -e <file>' produce an ascii armored <file>.age in the same | |
# directory encrypted with the age_def_rec file | |
# - 'age -d <file>' decrypts the file to stdout with the age_def_id file | |
# - anything that's not a file or doesn't uses -e/-d flags gets sent to the | |
# proper age binary location at age_bin | |
age_bin=/usr/bin/rage | |
age_def_rec="${XDG_CONFIG_HOME:-$HOME/.config}/age/recipients.txt" |