summaryrefslogtreecommitdiffstats
path: root/.config/nnn/plugins/joe_rand
diff options
context:
space:
mode:
Diffstat (limited to '.config/nnn/plugins/joe_rand')
-rwxr-xr-x.config/nnn/plugins/joe_rand2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nnn/plugins/joe_rand b/.config/nnn/plugins/joe_rand
index edc71c1..100181a 100755
--- a/.config/nnn/plugins/joe_rand
+++ b/.config/nnn/plugins/joe_rand
@@ -13,7 +13,7 @@
. "$(dirname "$0")"/.nnn-plugin-helper
file=$(command ls | shuf | head -n1 | tr -d '\n')
-printf "%s" "0l$file" > "$NNN_PIPE"
+printf "%s" "0c$PWD/$file" > "$NNN_PIPE"
# printf "%s" "+l" > "$NNN_PIPE"
# if type mimetype >/dev/null 2>&1; then
# find . | mimetype -f - | grep "$mime" | awk -F: '{printf "%s%c", $1, 0}' > "$NNN_PIPE"