diff options
| author | 2025-01-13 22:43:02 -0500 | |
|---|---|---|
| committer | 2025-01-13 22:43:02 -0500 | |
| commit | dce9ab07ae0b0496e432f213466fd6f442944fa7 (patch) | |
| tree | 74ea43a6771d244e04c1f8a33a61750cda0bdac1 /scripts | |
| parent | 2d35d8e272b4d5725c686be5d2b4436a55fe8141 (diff) | |
| download | dotfiles-dce9ab07ae0b0496e432f213466fd6f442944fa7.tar.gz dotfiles-dce9ab07ae0b0496e432f213466fd6f442944fa7.tar.bz2 dotfiles-dce9ab07ae0b0496e432f213466fd6f442944fa7.zip | |
Improve NFS options, misc stuff
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/dmenu-path | 2 | ||||
| -rwxr-xr-x | scripts/dmenu-path0 | 3 |
2 files changed, 4 insertions, 1 deletions
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 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 |