Skip to content

Instantly share code, notes, and snippets.

@pawsen
pawsen / find_env.sh
Last active April 25, 2023 15:23
debug age/rage error in nix
# unset a enviroment variable, see if rage works and restore the variable.
# when $PATH is unset all breaks down.
# readlink -f resolves to coreutils
tee=$(readlink $(which tee))
nix=$(readlink $(which nix))
rage_bin="/nix/store/176fb66dbfj3294chdnha0nlqyj3n3ax-rage-0.9.0/bin/rage"
#rage_bin="$nix run nixpkgs#rage --"
cmd="$rage_bin -d -i id_ed25519 test.txt.age"