commit 3b8e1d672474f842ff111a03da9a9967e0da7f05 parent a9d57482446dbd4f5bdb4463d8121c5522ef9265 Author: ananthu <ask1234560@gmail.com> Date: Fri, 28 Aug 2020 10:38:44 +0530 [dmenu](run-recent) fixed bug Diffstat:
M | tools.suckless.org/dmenu/scripts/run-recent | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools.suckless.org/dmenu/scripts/run-recent b/tools.suckless.org/dmenu/scripts/run-recent @@ -7,7 +7,7 @@ cache="$cachedir/dmenu_recent" touch "$cache" -most_used=$(sort "$cache" | uniq -c | sort -r | cut -d" " -f8) +most_used=$(sort "$cache" | uniq -c | sort -rh | awk -F" " '{print $2}') run=$((echo "$most_used"; dmenu_path | grep -vxF "$most_used") | dmenu -i "$@") ([ -z "$run" ] || echo "$run"; head -n 99 "$cache") > "$cache.$$" mv "$cache.$$" "$cache"