about summary refs log tree commit diff
path: root/profile/.profile.d/pass.sh
blob: c8831b1a75918eed563aec2237dcfc6ef9ecf16b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

_impls="
gopass
pass
"

for _impl in ${_impls}; do
	if command -v "${_impl}" >/dev/null 2>&1; then
		export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/password-store"

		break
	fi
done

unset _impl _impls

Consider giving Nix/NixOS a try! <3