summaryrefslogtreecommitdiffstats
path: root/.config/nnn/plugins/joe_rand
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-24 01:05:58 +0200
committerjoe <rbo@gmx.us>2025-10-24 01:05:58 +0200
commita4b655707a6b092c082b2e915ed4b1938e746cbd (patch)
tree96e5c5b7368da2b350180674abc800fe72471b82 /.config/nnn/plugins/joe_rand
parentup (diff)
downloaddotfiles-bsd-a4b655707a6b092c082b2e915ed4b1938e746cbd.tar.gz
dotfiles-bsd-a4b655707a6b092c082b2e915ed4b1938e746cbd.tar.bz2
dotfiles-bsd-a4b655707a6b092c082b2e915ed4b1938e746cbd.tar.xz
dotfiles-bsd-a4b655707a6b092c082b2e915ed4b1938e746cbd.tar.zst
dotfiles-bsd-a4b655707a6b092c082b2e915ed4b1938e746cbd.zip
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"