forked from jmatth/ezprompt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
166 lines (116 loc) · 7.65 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
<!-- vim: set ts=2 sw=2 expandtab: -->
<!DOCTYPE HTML>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Easy Bash Prompt Generator</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/spectrum.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/start/jquery-ui-1.10.1.custom.css" />
<!-- jquery base, jquery ui, custom javascript -->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery-ui-1.10.1.custom.min.js"></script>
<script src="js/spectrum-min.js"></script>
<script src="js/easyprompt.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<a href="https://github.com/jmatth/ezprompt">
<img style="position:absolute; top:0; right:0; border:0; z-index: 999;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub">
</a>
<div id="beta"></div>
<div id="header">
<div id="header-wrapper">
<span id="name">EzPrompt</span>
<span id="subtitle">Easy Bash PS1 Generator</span>
</div>
</div>
<div id="instructions-step-one" class="main-section-instructions">
<p>1.) Pick the elements you want to use in your prompt.</p>
</div>
<div class="main-section" id="elements-options">
<ul id="elements-options-tabs">
<li><a href="#elements-tab-basic">Basic Elements</a></li>
<li><a href="#elements-tab-status">Status Elements</a></li>
<li><a href="#elements-tab-times">Date & Time Elements</a></li>
<li><a href="#elements-tab-extra">Extra Characters</a></li>
</ul>
<div class="elements-tab" id="elements-tab-basic">
<ul id="elements-basic">
<li class="ui-state-default prompt-option-origin prompt-option" id="option-username" title="The current username.">Username</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-hostname" title="The hostname of the machine.">Hostname</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-fqdn" title="The Fully Qualified Domain Name of the host.">FQDN</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-shell" title="The shell being executed, i.e. 'bash'.">Shell</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-shellversion" title="The version of bash.">Shell Version</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-shellrelease" title="The version of bash with patch level.">Shell Release</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-pathtocurrentdirectory" title="The path to the current working directory, with $HOME abbreviated to ~.">Path To Current Directory</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-currentdirectory" title="The current working directory, with $HOME abbreviated to ~.">Current Directory</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-promptchar" title="Normally $. Changes to # if logged in as root (current UID = 0).">$</li>
</ul>
</div>
<div class="elements-tab" id="elements-tab-status">
<ul id="elements-status">
<li class="ui-state-default prompt-option-origin prompt-option" id="option-returncode" title="The return code of the previous command if it exits non-zero. Otherwise blank.">Error Code</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-gitstatus" title="If in a git repository, the current branch and status indicators. Otherwise blank.">Git Status</li>
</ul>
</div>
<div class="elements-tab" id="elements-tab-extra">
<ul id="elements-extra">
<li class="ui-state-default prompt-option-origin prompt-option" id="option-atsymbol">@</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-colon">:</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-openbracket">[</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-closebracket">]</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-hyphen">-</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-underscore">_</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-star">*</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-space" title="A space character.">␣</li>
<br />
<li class="ui-state-default" id="option-custom">Enter custom text:<br /><input type="text"id="custom-text-input"/> <button id="custom-text-button" title="Create custom text element. Forbidden characters are \$(){}.">+</button></li>
</ul>
</div>
<div class="elements-tab" id="elements-tab-times">
<ul id="elements-times">
<li class="ui-state-default prompt-option-origin prompt-option" id="option-date" title="The date in DDD MMM dd format.">Date</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-fulltime" title="The time in 24 hour hh:mm format.">24hr Time</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-halftime" title="The time in 12 hour hh:mm (AM/PM) format.">12hr Time</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-fulltimeseconds" title="The time in 24 hour hh:mm:ss format.">24hr Time w/ Seconds</li>
<li class="ui-state-default prompt-option-origin prompt-option" id="option-halftimeseconds" title="The time in 12 hour hh:mm:ss format.">12hr Time w/ Seconds</li>
</ul>
</div>
</div>
<div id="instructions-step-two" class="main-section-instructions">
<p>2.) Select colors and rearrange elements here.</p>
</div>
<div class="main-section" id="elements-sortable">
<ul class="sortable" id="elements-list">
</ul>
</div>
<div class="main-section" id="elements-control-buttons">
<button id="button-element-delete-selected" title="Delete the currently selected element.">Delete</button>
<button id="button-element-reset-selected" title="Remove color codes from the currently selected element.">Reset</button>
<div id="container-spectrum">
<span>FG <input type="text" id="input-spectrum-fg"/></span>
<span>BG <input type="text" id="input-spectrum-bg"/></span>
</div>
<button id="button-element-delete-all" title="Delete all elements.">Delete All</button>
<button id="button-element-reset-all" title="Remove color codes from all elements.">Reset All</button>
</div>
<div id="instructions-step-three" class="main-section-instructions">
<p>3.) Preview the output.</p>
</div>
<div class="main-section preview-dark" id="preview">
<ul id="preview-list">
</ul>
<div id="switch-toggle-bg" class="switch-toggle-bg-dark" style='-moz-user-select: none;-webkit-user-select: none;' onselectstart='return false;'>
</div>
</div>
<div id="instructions-step-four" class="main-section-instructions">
<p>4.) Copy and paste the code into your bashrc.</p>
</div>
<div class="main-section" id="code-output-wrapper">
<textarea id="code-output-text" readonly></textarea>
</div>
<div id="footer">
<p>© 2013 <a href="http://jmatthews.us">Josh Matthews</a></p>
<p>Built using: <a href="http://jquery.org/">jQuery UI</a> • <a href="http://bgrins.github.com/spectrum/">Spectrum</a> •
<a href="http://www.dafont.com/cf-revolution.font">CF Revolution</a> • <a href="http://terminus-font.sourceforge.net/">Terminus</a></p>
</div>
</body>