Add viz_cmd_usage_zsh_history.sh
[snip.git] / viz_cmd_usage_zsh_history.sh
CommitLineData
53020522
SK
1#! /bin/sh
2
3awk -F';' '{sub("^" $1 ";", ""); print}' ~/.zsh_history | awk '{print $1}' | 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 -
This page took 0.014169 seconds and 4 git commands to generate.