From 591f42686046d327315ad8ad8b327319720374cf Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 16 Dec 2019 22:11:23 -0500 Subject: [PATCH] Uncramp neato's output upon suggestion from: https://twitter.com/Graphviz/status/1206733210194993154 --- viz_cmd_usage_zsh_history.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viz_cmd_usage_zsh_history.sh b/viz_cmd_usage_zsh_history.sh index 7fd34f1..6b55471 100755 --- a/viz_cmd_usage_zsh_history.sh +++ b/viz_cmd_usage_zsh_history.sh @@ -2,4 +2,4 @@ # First pipe member may need to be modified for a desired history file (path and splitting). -awk -F';' '{sub("^" $1 ";", ""); print}' ~/.zsh_history | awk '{curr = $1; links[NR, prev] = curr; prev = curr} END {printf "digraph G {"; for (node in links) {split(node, n, SUBSEP); printf "\"%s\" -> \"%s\"\n", n[2], links[node]}; printf "}\n"}' | neato -T png | feh - +awk -F';' '{sub("^" $1 ";", ""); print}' ~/.zsh_history | awk '{curr = $1; links[NR, prev] = curr; prev = curr} END {printf "digraph G {"; for (node in links) {split(node, n, SUBSEP); printf "\"%s\" -> \"%s\"\n", n[2], links[node]}; printf "}\n"}' | neato -T png -Goverlap=false | feh - -- 2.20.1