@@ -0,0 +1,37 @@
1+diff --git a/transcrypt b/transcrypt
2+index a0b562d..7888f5d 100755
3+--- a/transcrypt
4++++ b/transcrypt
5+@@ -278,6 +278,7 @@ save_helper_scripts() {
6+
7+ cat <<-'EOF' > "${GIT_DIR}/crypt/clean"
8+ #!/usr/bin/env bash
9++ PATH="$(transcrypt-depspathprefix 2>/dev/null)$PATH"
10+ filename=$1
11+ # ignore empty files
12+ if [[ -s $filename ]]; then
13+@@ -300,6 +301,7 @@ save_helper_scripts() {
14+
15+ cat <<-'EOF' > "${GIT_DIR}/crypt/smudge"
16+ #!/usr/bin/env bash
17++ PATH="$(transcrypt-depspathprefix 2>/dev/null)$PATH"
18+ tempfile=$(mktemp 2> /dev/null || mktemp -t tmp)
19+ trap 'rm -f "$tempfile"' EXIT
20+ cipher=$(git config --get --local transcrypt.cipher)
21+@@ -309,6 +311,7 @@ save_helper_scripts() {
22+
23+ cat <<-'EOF' > "${GIT_DIR}/crypt/textconv"
24+ #!/usr/bin/env bash
25++ PATH="$(transcrypt-depspathprefix 2>/dev/null)$PATH"
26+ filename=$1
27+ # ignore empty files
28+ if [[ -s $filename ]]; then
29+@@ -351,7 +354,7 @@ save_configuration() {
30+ git config merge.renormalize 'true'
31+
32+ # add a git alias for listing encrypted files
33+- git config alias.ls-crypt "!git ls-files | git check-attr --stdin filter | awk 'BEGIN { FS = \":\" }; /crypt$/{ print \$1 }'"
34++ git config alias.ls-crypt "!PATH=\"\$(transcrypt-depspathprefix 2>/dev/null)\$PATH\"; git ls-files | git check-attr --stdin filter | awk 'BEGIN { FS = \":\" }; /crypt$/{ print \$1 }'"
35+ }
36+
37+ # display the current configuration settings