Uncramp neato's output master
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 17 Dec 2019 03:11:23 +0000 (22:11 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 17 Dec 2019 03:11:23 +0000 (22:11 -0500)
upon suggestion from:
https://twitter.com/Graphviz/status/1206733210194993154

viz_cmd_usage_zsh_history.sh

index 7fd34f1..6b55471 100755 (executable)
@@ -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 -
This page took 0.0312 seconds and 4 git commands to generate.