-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
254 lines (230 loc) · 8.95 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!-- Yes, this is using Twitter Bootstrap -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>$PS1 Bash Prompt Generator and Reference</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/site.css" />
</head>
<body>
<div class="container">
<div id="github-buttons" class="pull-right">
<iframe src="http://ghbtns.com/github-btn.html?user=omar&repo=ps1gen&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=omar&type=follow&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
<ul id="share-buttons">
<li>
<a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="http://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</li>
<li>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fomar.github.com%2Fps1gen&send=false&layout=button_count&&show_faces=false&font&colorscheme=light&action=like&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
</li>
<li>
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="medium" data-href="http://omar.github.com/ps1gen"></div>
<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</li>
</ul>
</div>
<h1 id="title">ps1gen <small>a PS1 generator and reference</small></h1>
<hr />
<div class="section row">
<div class="span2">
<h3>Options</h3>
<h6>Legend</h6>
<ul id="legend">
<li>
<span class="example">Text</span> : example output
</li>
<li>
<a href="#" class="btn btn-mini pop-it" data-content="Symbol descrption">\w</a> : symbol (click)
</li>
<li>
<div class="color-picker-add"></div> : text color (click)
</li>
<li>
<a href="#" class="trailing-whitespace btn btn-mini">_</a> : trailing space (click)
</li>
<li>
<i class="icon-remove"></i>: delete
</li>
<li>
<i class="icon-move"></i>: move
</li>
</ul>
</div>
<div class="span10">
<div class="content">
<small>Drag items from here to the 'Selected' area</small>
<div id="categories">
<div class="category">
<h5>Directory</h5>
<ul id="directory" class="options">
</ul>
</div>
<div class="category">
<h5>Date</h5>
<ul id="date" class="options">
</ul>
</div>
<div class="category">
<h5>Time</h5>
<ul id="time" class="options">
</ul>
</div>
<div class="category">
<h5>Computer</h5>
<ul id="computer" class="options">
</ul>
</div>
<div class="category">
<h5>Other</h5>
<ul id="other" class="options">
<li class="draggable new-item">
<i class="icon-remove delete"></i>
<span class="example">
<input type="text" class="input-mini" />
</span>
<i class="icon-move hold"></i>
<a href="#" class="btn btn-mini pop-it" data-content='Enter custom text. Automatically escapes \ and "'>txt</a>
<div class="color-picker-add"></div>
<a href="#" class="trailing-whitespace btn btn-mini active">_</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="section row">
<div class="span2">
<h3>Selected</h3>
</div>
<div class="span10">
<div class="content">
<small>Items placed here will be used to generate the PS1 string</small>
<div id="selected">
<ul id="sortable">
</ul>
<div style="clear:both"> </div>
</div>
</div>
</div>
</div>
<div class="section row">
<div class="span2">
<h3>Preview</h3>
<div id="preview-background">
<span>Background</span>
<div class="btn-group">
<a href="#" class="btn btn-mini btn-inverse active" data-color="#333">Dark</a>
<a href="#" class="btn btn-mini" data-color="#f9f9f9">Light</a>
</div>
</div>
</div>
<div class="span10">
<div class="content">
<small>What your command prompt will look like</small>
<div id="preview">
<span id="preview-text"></span><span id="cursor">_</span>
</div>
</div>
</div>
</div>
<div class="section row">
<div class="span2">
<h3>Output</h3>
</div>
<div class="span10">
<div class="content">
<small>The PS1 string that matches the items selected - place this in <code>~/.bash_profile</code> or <code>~/.bashrc</code></small>
<div id="output">export PS1=""</div>
</div>
</div>
</div>
<hr />
<div class="section row">
<div class="span2">
<h3>References</h3>
</div>
<div class="span10">
<div class="content">
<ul>
<li><a href="http://www.gnu.org/software/bash/manual/bashref.html#Printing-a-Prompt">bash manual: Controlling the Prompt</a> (gnu.org)</li>
<li><a href="http://www.ibm.com/developerworks/library/l-tip-prompt/">Tip: Prompt magic</a> (ibm.com)</li>
</ul>
</div>
</div>
</div>
<div class="section row">
<div class="span2">
<h3>Inspiration</h3>
</div>
<div class="span10">
<div class="content">
<ul>
<li><a href="http://www.kirsle.net/wizards/ps1.html#help">Noah's Bash $PS1 Generator</a> (kirsle.net)</li>
<li><a href="http://ps1gen.coding-journal.com/">PS1 Bash Prompt Generator</a> (ps1gen.coding-journal.com)</li>
<li><a href="http://xta.github.com/HalloweenBash/">Halloween Bash Profile Generator</a> (xta.github.com/HalloweenBash)</li>
</ul>
</div>
</div>
</div>
<footer>
ps1gen by <a href="http://omar.io">Omar Khudeira</a>
</footer>
</div>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/jquery-ui-1.10.0.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/underscore-min.js"></script>
<script type="text/template" id="item-template">
<li class="draggable new-item">
<i class="icon-remove delete"></i>
<span class="example">{{ example }}</span>
<i class="icon-move hold"></i>
<a href="#" class="btn btn-mini pop-it" data-content="{{ description }}">{{ text }}</a>
<div class="color-picker-add"></div>
<a href="#" class="trailing-whitespace btn btn-mini active">_</a>
</li>
</script>
<script type="text/template" id="color-template">
<div class="btn-group">
<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
<span class="color-preview" style="background-color: #c4c5c6" data-color-code="37m"></span>
</a>
<ul class="dropdown-menu">
{[ _.each(colors, function (color) { ]}
<li>
<a href="#" class="color-pick">
<span class="color-preview" style="background-color:{{ color.hex }}" data-color-code="{{ color.code }}"></span>
{{ color.text }}
</a>
</li>
{[ }); ]}
</ul>
</div>
</script>
<script src="js/site.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38306518-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>