summaryrefslogtreecommitdiff
path: root/scripts/dmenu-path0
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-01-13 22:43:02 -0500
committerAndrew Opalach <andrew@akon.city> 2025-01-13 22:43:02 -0500
commitdce9ab07ae0b0496e432f213466fd6f442944fa7 (patch)
tree74ea43a6771d244e04c1f8a33a61750cda0bdac1 /scripts/dmenu-path0
parent2d35d8e272b4d5725c686be5d2b4436a55fe8141 (diff)
downloaddotfiles-dce9ab07ae0b0496e432f213466fd6f442944fa7.tar.gz
dotfiles-dce9ab07ae0b0496e432f213466fd6f442944fa7.tar.bz2
dotfiles-dce9ab07ae0b0496e432f213466fd6f442944fa7.zip
Improve NFS options, misc stuff
Diffstat (limited to 'scripts/dmenu-path0')
-rwxr-xr-xscripts/dmenu-path03
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/dmenu-path0 b/scripts/dmenu-path0
new file mode 100755
index 0000000..0e50457
--- /dev/null
+++ b/scripts/dmenu-path0
@@ -0,0 +1,3 @@
+#! /usr/bin/env sh
+# https://github.com/ema/dotfiles/blob/fb7f5cab530daba74edefb9cecb401262db063a9/bin/dmenu_path
+printf $PATH -print0 | tr ':' '\0' | xargs -0 ls -Llu --time-style=+%s | awk '/^(-|l)/ { printf $6" "$7"\0" }' | sort -zrn | cut -z -d' ' -f 2