about summary refs log tree commit diff stats
path: root/examples/bash_automatic_cd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bash_automatic_cd.sh')
-rw-r--r--examples/bash_automatic_cd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bash_automatic_cd.sh b/examples/bash_automatic_cd.sh
index 0ab0ec13..642d6f29 100644
--- a/examples/bash_automatic_cd.sh
+++ b/examples/bash_automatic_cd.sh
@@ -9,7 +9,7 @@
 
 ranger-cd() {
     local temp_file chosen_dir
-    temp_file="$(mktemp)"
+    temp_file="$(mktemp -t "${0}.XXXXXXXXXX")"
     ranger --choosedir="$temp_file" -- "${@:-$PWD}"
     if chosen_dir="$(<"$temp_file")" && [[ -n "$chosen_dir" ]]; then
         cd -- "$chosen_dir"