From e0f8af39e062e21841c989e2d23afdebc5ad9fb2 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 16 Dec 2019 16:49:05 -0500 Subject: [PATCH] Mention modification need --- viz_cmd_usage_zsh_history.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/viz_cmd_usage_zsh_history.sh b/viz_cmd_usage_zsh_history.sh index 909495c..8fc58db 100644 --- a/viz_cmd_usage_zsh_history.sh +++ b/viz_cmd_usage_zsh_history.sh @@ -1,3 +1,5 @@ #! /bin/sh +# First pipe member may need to be modified for a desired history file (path and splitting). + 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 - -- 2.20.1