8fc58db183e6694315fd57934411f2f25bcb43a4
[snip.git] / viz_cmd_usage_zsh_history.sh
1 #! /bin/sh
2
3 # First pipe member may need to be modified for a desired history file (path and splitting).
4
5 awk -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.037826 seconds and 3 git commands to generate.