From dce9ab07ae0b0496e432f213466fd6f442944fa7 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 13 Jan 2025 22:43:02 -0500 Subject: Improve NFS options, misc stuff --- scripts/dmenu-path | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/dmenu-path') diff --git a/scripts/dmenu-path b/scripts/dmenu-path index c353c0d..e0637fe 100755 --- a/scripts/dmenu-path +++ b/scripts/dmenu-path @@ -1,3 +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 +printf $PATH -print0 | tr ':' '\0' | xargs -0 ls -Llu --time-style=+%s | awk '/^(-|l)/ { printf $6" "$7"\n" }' | sort -rn | cut -d' ' -f 2 -- cgit v1.2.3-101-g0448