Remove redundant step
[snip.git] / viz_cmd_usage_zsh_history.sh
old mode 100644 (file)
new mode 100755 (executable)
index 909495c..7fd34f1
@@ -1,3 +1,5 @@
 #! /bin/sh
 
-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 -
+# 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 -
This page took 0.018626 seconds and 4 git commands to generate.