home
/
code
/
snip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5f07c75
)
Remove redundant step
author
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 17 Dec 2019 03:08:11 +0000
(22:08 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 17 Dec 2019 03:08:11 +0000
(22:08 -0500)
viz_cmd_usage_zsh_history.sh
patch
|
blob
|
blame
|
history
diff --git
a/viz_cmd_usage_zsh_history.sh
b/viz_cmd_usage_zsh_history.sh
index
8fc58db
..
7fd34f1
100755
(executable)
--- a/
viz_cmd_usage_zsh_history.sh
+++ b/
viz_cmd_usage_zsh_history.sh
@@
-2,4
+2,4
@@
# First pipe member may need to be modified for a desired history file (path and splitting).
# 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 -
+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.020543 seconds
and
4
git commands to generate.