-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
101 lines (82 loc) · 4.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Simon Meusel">
<meta name="description" content="Analyze your zsh history!">
<meta name="keywords" content="zsh, chart, stats, statistics, history, shell">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<title>ZSH Stats</title>
</head>
<body>
<div class="container">
<br>
<br>
<h1>ZSH Stats</h1>
<p>With ZSH Stats you can figure out which commands you mostly used! It also tells you how many commands you executed in general...</p>
<br>
<h6>1. Paste contents of <code>.zsh_history</code> here:</h6>
<textarea class="form-control" id="history"></textarea>
<br>
<div id="accordion" role="tablist" aria-multiselectable="true">
<div class="card">
<div class="card-header" role="tab" id="headingOne">
<h6 class="mb-0">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseable" aria-expanded="true" aria-controls="collapseable">
How to copy contents of <code>.zsh_history</code> ?
</a>
</h5>
</div>
<div id="collapseable" class="collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="card-block">
<h6>Mac</h6>
<code>pbcopy < ~/.zsh_history</code>
<hr>
<h6>Linux</h6>
<code>sudo apt-get install xclip && xclip -sel clip < ~/.zsh_history</code>
<hr>
<h6>Windows</h6>
<code>clip < ~/.zsh_history</code>
</div>
</div>
</div>
</div>
<br>
<button type="button" class="btn btn-primary update">Update</button>
<hr>
<h6>2. Look at the stats:</h6>
Max items:
<input type="number" class="form-control" step="1" min="0" id="max-items" value="30">
<br>
<p>Amount of commands: <span id="command-amount"></span></p>
<ul class="nav nav-tabs update">
<li class="nav-item">
<a class="nav-link active" data-mode="program">Programs</a>
</li>
<li class="nav-item">
<a class="nav-link" data-mode="command">Commands</a>
</li>
</ul>
<br>
<canvas></canvas>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<footer>
<div class="container">
Copyright Simon Meusel 2017, created using
<a href="http://jquery.com/">jQuery</a> ,
<a href="http://tether.io/">Tether</a> ,
<a href="http://chartjs.org/">Chart.js</a> ,
<a href="http://getbootstrap.com/">Bootstrap</a>.
<a href="https://simonmeusel.github.io/contact.html">Contact</a>
<a href="https://simonmeusel.github.io/impressum.html">Impressum</a>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js" integrity="sha256-GcknncGKzlKm69d+sp+k3A2NyQE+jnu43aBl6rrDN2I=" crossorigin="anonymous"></script>
<script src="js/index.js"></script>
</body>
</html>