summaryrefslogtreecommitdiff
path: root/scripts/dmenu-path
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-11-12 22:26:02 -0500
committerAndrew Opalach <andrew@akon.city> 2024-11-12 22:36:49 -0500
commit53a0a5473f45d37027af9663638adbf56667e4ca (patch)
tree05c6c39678a9005f95c00e0fdf31193657bd4d3d /scripts/dmenu-path
downloaddotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.tar.gz
dotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.tar.bz2
dotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.zip
Hopefully no leaks
Diffstat (limited to 'scripts/dmenu-path')
-rwxr-xr-xscripts/dmenu-path3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/dmenu-path b/scripts/dmenu-path
new file mode 100755
index 0000000..c353c0d
--- /dev/null
+++ b/scripts/dmenu-path
@@ -0,0 +1,3 @@
+#! /usr/bin/env sh
+# https://github.com/ema/dotfiles/blob/fb7f5cab530daba74edefb9cecb401262db063a9/bin/dmenu_path
+echo $PATH | tr ':' '\n' | uniq | sed 's#$#/#' | xargs ls -Llu --time-style=+%s | awk '/^(-|l)/ { print $6, $7 }' | sort -rn | cut -d' ' -f 2