Uncramp neato's output
[snip.git] / viz_cmd_usage_zsh_history.sh
CommitLineData
53020522
SK
1#! /bin/sh
2
e0f8af39
SK
3# First pipe member may need to be modified for a desired history file (path and splitting).
4
591f4268 5awk -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.02195 seconds and 4 git commands to generate.