zsh_dots 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/config/gitconfig +4 -1
- data/config/gitignore +3 -1
- data/config/heroku.zsh.example +2 -0
- data/config/vimrc +27 -1
- data/config/zshenv +7 -3
- data/etc/irssi/config.example +230 -0
- data/etc/irssi/default.theme +294 -0
- data/etc/irssi/nickserv.networks +2 -0
- data/etc/irssi/scripts/autorun/freenode_filter.pl +122 -0
- data/etc/irssi/scripts/autorun/nickserv.pl +563 -0
- data/etc/irssi/scripts/autorun/trigger.pl +1225 -0
- data/etc/irssi/scripts/autorun/vim_mode.pl +3783 -0
- data/etc/irssi/solarized-universal.theme +372 -0
- data/etc/irssi/triggers +2 -0
- data/etc/rails/template.rb +20 -9
- data/lib/dots/aliases.zsh +4 -0
- data/lib/plugins/git/git.plugin.zsh +3 -3
- data/lib/plugins/heroku/heroku.plugin.zsh +12 -0
- data/lib/ruby/dots/bootstrap.rb +46 -26
- data/lib/ruby/dots/packages.rb +19 -0
- data/lib/ruby/dots/version.rb +1 -1
- metadata +16 -6
@@ -0,0 +1,372 @@
|
|
1
|
+
# irssi theme for the Solarized color palette
|
2
|
+
# (Adapted from default theme distributed with irssi 0.8.15 circa 2011-04-25)
|
3
|
+
#
|
4
|
+
# Adaptation by: Huy Z
|
5
|
+
# Source: https://github.com/huyz/irssi-colors-solarized
|
6
|
+
#
|
7
|
+
|
8
|
+
# When testing changes, the easiest way to reload the theme is with /RELOAD.
|
9
|
+
# This reloads the configuration file too, so if you did any changes remember
|
10
|
+
# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
|
11
|
+
# old data so keep backups :)
|
12
|
+
|
13
|
+
# TEMPLATES:
|
14
|
+
|
15
|
+
# The real text formats that irssi uses are the ones you can find with
|
16
|
+
# /FORMAT command. Back in the old days all the colors and texts were mixed
|
17
|
+
# up in those formats, and it was really hard to change the colors since you
|
18
|
+
# might have had to change them in tens of different places. So, then came
|
19
|
+
# this templating system.
|
20
|
+
|
21
|
+
# Now the /FORMATs don't have any colors in them, and they also have very
|
22
|
+
# little other styling. Most of the stuff you need to change is in this
|
23
|
+
# theme file. If you can't change something here, you can always go back
|
24
|
+
# to change the /FORMATs directly, they're also saved in these .theme files.
|
25
|
+
|
26
|
+
# So .. the templates. They're those {blahblah} parts you see all over the
|
27
|
+
# /FORMATs and here. Their usage is simply {name parameter1 parameter2}.
|
28
|
+
# When irssi sees this kind of text, it goes to find "name" from abstracts
|
29
|
+
# block below and sets "parameter1" into $0 and "parameter2" into $1 (you
|
30
|
+
# can have more parameters of course). Templates can have subtemplates.
|
31
|
+
# Here's a small example:
|
32
|
+
# /FORMAT format hello {colorify {underline world}}
|
33
|
+
# abstracts = { colorify = "%G$0-%n"; underline = "%U$0-%U"; }
|
34
|
+
# When irssi expands the templates in "format", the final string would be:
|
35
|
+
# hello %G%Uworld%U%n
|
36
|
+
# ie. underlined bright green "world" text.
|
37
|
+
# and why "$0-", why not "$0"? $0 would only mean the first parameter,
|
38
|
+
# $0- means all the parameters. With {underline hello world} you'd really
|
39
|
+
# want to underline both of the words, not just the hello (and world would
|
40
|
+
# actually be removed entirely).
|
41
|
+
|
42
|
+
# COLORS:
|
43
|
+
|
44
|
+
# You can find definitions for the color format codes in docs/formats.txt.
|
45
|
+
|
46
|
+
# There's one difference here though. %n format. Normally it means the
|
47
|
+
# default color of the terminal (white mostly), but here it means the
|
48
|
+
# "reset color back to the one it was in higher template". For example
|
49
|
+
# if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would
|
50
|
+
# print yellow "foo" (as set with %Y) but "bar" would be green, which was
|
51
|
+
# set at the beginning before the {foo} template. If there wasn't the %g
|
52
|
+
# at start, the normal behaviour of %n would occur. If you _really_ want
|
53
|
+
# to use the terminal's default color, use %N.
|
54
|
+
|
55
|
+
#############################################################################
|
56
|
+
|
57
|
+
# default foreground color (%N) - -1 is the "default terminal color"
|
58
|
+
default_color = "-1";
|
59
|
+
|
60
|
+
# print timestamp/servertag at the end of line, not at beginning
|
61
|
+
info_eol = "false";
|
62
|
+
|
63
|
+
# these characters are automatically replaced with specified color
|
64
|
+
# (dark grey by default)
|
65
|
+
replaces = { "[]=" = "%_$*%_"; };
|
66
|
+
|
67
|
+
abstracts = {
|
68
|
+
##
|
69
|
+
## generic
|
70
|
+
##
|
71
|
+
|
72
|
+
# text to insert at the beginning of each non-message line
|
73
|
+
# %G = brightgreen (Solarized: base01, i.e. darkest gray)
|
74
|
+
# %| probably right-aligns
|
75
|
+
line_start = " %G-!- ";
|
76
|
+
|
77
|
+
# timestamp styling, nothing by default
|
78
|
+
# %Y = brightyellow (Solarized: base00, i.e. 2nd darkest gray)
|
79
|
+
timestamp = "%Y$*%n";
|
80
|
+
|
81
|
+
# any kind of text that needs hilighting, default is to bold
|
82
|
+
hilight = "%_$*%_";
|
83
|
+
|
84
|
+
# any kind of error message, default is bright red
|
85
|
+
# %r = red
|
86
|
+
error = "%r$*%n";
|
87
|
+
|
88
|
+
# channel name is printed
|
89
|
+
channel = "%_$*%_";
|
90
|
+
|
91
|
+
# nick is printed
|
92
|
+
nick = "%_$*%_";
|
93
|
+
|
94
|
+
# nick host is printed
|
95
|
+
# (that's the "email" address of a user)
|
96
|
+
nickhost = "<$*>";
|
97
|
+
|
98
|
+
# server name is printed
|
99
|
+
server = "%_$*%_";
|
100
|
+
|
101
|
+
# some kind of comment is printed
|
102
|
+
comment = "($*)";
|
103
|
+
|
104
|
+
# reason for something is printed (part, quit, kick, ..)
|
105
|
+
reason = "{comment $*}";
|
106
|
+
|
107
|
+
# mode change is printed ([+o nick])
|
108
|
+
mode = "{comment $*}";
|
109
|
+
|
110
|
+
##
|
111
|
+
## channel specific messages
|
112
|
+
##
|
113
|
+
|
114
|
+
# highlighted nick/host is printed (joins)
|
115
|
+
# %c = cyan
|
116
|
+
# NOTE: %n doesn't work in irssi v0.8.15 for some reason. So we have to end with the same color as line_start
|
117
|
+
#channick_hilight = "%C$*%n";
|
118
|
+
channick_hilight = "%c$*%G";
|
119
|
+
chanhost_hilight = "{nickhost $*}";
|
120
|
+
|
121
|
+
# nick/host is printed (parts, quits, etc.)
|
122
|
+
#channick = "%c$*%n";
|
123
|
+
channick = "$*";
|
124
|
+
chanhost = "{nickhost $*}";
|
125
|
+
|
126
|
+
# highlighted channel name is printed
|
127
|
+
channelhilight = "%c$*%n";
|
128
|
+
|
129
|
+
# ban/ban exception/invite list mask is printed
|
130
|
+
# %R = brightred (Solarized: orange)
|
131
|
+
ban = "%R$*%n";
|
132
|
+
|
133
|
+
##
|
134
|
+
## messages
|
135
|
+
##
|
136
|
+
|
137
|
+
# the basic styling of how to print message, $0 = nick mode, $1 = nick
|
138
|
+
msgnick = "%_<%_$0$1-%_>%_ %|";
|
139
|
+
|
140
|
+
# message from you is printed. "msgownnick" specifies the styling of the
|
141
|
+
# nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
|
142
|
+
# whole line.
|
143
|
+
|
144
|
+
# Example1: You want the message text to be green:
|
145
|
+
# ownmsgnick = "{msgnick $0 $1-}%g";
|
146
|
+
# Example2.1: You want < and > chars to be yellow:
|
147
|
+
# ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
|
148
|
+
# (you'll also have to remove <> from replaces list above)
|
149
|
+
# Example2.2: But you still want to keep <> grey for other messages:
|
150
|
+
# pubmsgnick = "%K{msgnick $0 $1-%K}%n";
|
151
|
+
# pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
|
152
|
+
# pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n";
|
153
|
+
# ownprivmsgnick = "%K{msgnick $*%K}%n";
|
154
|
+
# privmsgnick = "%K{msgnick %R$*%K}%n";
|
155
|
+
|
156
|
+
# $0 = nick mode, $1 = nick
|
157
|
+
ownmsgnick = "{msgnick $0 $1-}%b";
|
158
|
+
ownnick = "%b$*%n";
|
159
|
+
|
160
|
+
# public message in channel, $0 = nick mode, $1 = nick
|
161
|
+
pubmsgnick = "{msgnick $0 $1-}";
|
162
|
+
pubnick = "%N%_$*%_%n";
|
163
|
+
|
164
|
+
# public message in channel meant for me, $0 = nick mode, $1 = nick
|
165
|
+
pubmsgmenick = "{msgnick $0 $1-}";
|
166
|
+
# %m = magenta
|
167
|
+
menick = "%m$*%n";
|
168
|
+
|
169
|
+
# public highlighted message in channel
|
170
|
+
# $0 = highlight color, $1 = nick mode, $2 = nick
|
171
|
+
pubmsghinick = "{msgnick $1 $0$2-%n}";
|
172
|
+
|
173
|
+
# channel name is printed with message
|
174
|
+
# This is printed whenever the channel name is printed for disambiguation, e.g.
|
175
|
+
# while there is a query in the same window. Example: <+funnyuser:#test> hello
|
176
|
+
msgchannel = "%G:%c$*%n";
|
177
|
+
|
178
|
+
# private message, $0 = nick, $1 = host
|
179
|
+
# TODO: To test for Solarized
|
180
|
+
#privmsg = "[%m$0%K<%M$1-%K>%n] ";
|
181
|
+
privmsg = "[%m$0%G<%n$1-%G>%n] ";
|
182
|
+
|
183
|
+
# private message from you, $0 = "msg", $1 = target nick
|
184
|
+
# TODO: To test for Solarized
|
185
|
+
#ownprivmsg = "[%b$0%K<%B$1-%K>%n] ";
|
186
|
+
ownprivmsg = "[%b$0%G<%B$1-%G>%n] ";
|
187
|
+
|
188
|
+
# own private message in query
|
189
|
+
ownprivmsgnick = "{msgnick $*}%b";
|
190
|
+
ownprivnick = "%b$*%n";
|
191
|
+
|
192
|
+
# private message in query
|
193
|
+
# NOTE: for some reason, we gotta handle both the nick & msg on in this line
|
194
|
+
privmsgnick = "{msgnick %m$*%n}%m";
|
195
|
+
|
196
|
+
##
|
197
|
+
## Actions (/ME stuff)
|
198
|
+
##
|
199
|
+
|
200
|
+
# used internally by this theme
|
201
|
+
action_core = "%_*%n $*";
|
202
|
+
|
203
|
+
# generic one that's used by most actions
|
204
|
+
action = "{action_core %_$*%n} ";
|
205
|
+
|
206
|
+
# own action, both private/public
|
207
|
+
ownaction = "{action_core %b$*%n} ";
|
208
|
+
|
209
|
+
# own action with target, both private/public
|
210
|
+
# NOTE: to test: /action NICK farted. (This will tell NICK that you farted)
|
211
|
+
# This is like a /me but only you and NICK will see
|
212
|
+
# TODO: To test for Solarized
|
213
|
+
ownaction_target = "{action_core $0}%G:%b$1%n ";
|
214
|
+
|
215
|
+
# private action sent by others
|
216
|
+
# TODO: To test for Solarized
|
217
|
+
# %M = brightmagenta (Solarized: violet)
|
218
|
+
pvtaction = "%M (*) $*%n ";
|
219
|
+
pvtaction_query = "{action $*}";
|
220
|
+
|
221
|
+
# public action sent by others
|
222
|
+
pubaction = "{action $*}";
|
223
|
+
|
224
|
+
|
225
|
+
##
|
226
|
+
## other IRC events
|
227
|
+
##
|
228
|
+
|
229
|
+
# whois
|
230
|
+
whois = "%# $[8]0 : $1-";
|
231
|
+
|
232
|
+
# notices
|
233
|
+
# TODO: To adapt for Solarized
|
234
|
+
ownnotice = "[%b$0%G(%b$1-%G)]%n ";
|
235
|
+
notice = "%G-%M$*%G-%n ";
|
236
|
+
pubnotice_channel = "%G:%m$*";
|
237
|
+
pvtnotice_host = "%G(%m$*%G)";
|
238
|
+
servernotice = "%g!$*%n ";
|
239
|
+
|
240
|
+
# CTCPs
|
241
|
+
# TODO: To adapt for Solarized
|
242
|
+
ownctcp = "[%b$0%G(%b$1-%G)] ";
|
243
|
+
ctcp = "%g$*%n";
|
244
|
+
|
245
|
+
# wallops
|
246
|
+
wallop = "%c$*%n: ";
|
247
|
+
wallop_nick = "%n$*";
|
248
|
+
wallop_action = "%c * $*%n ";
|
249
|
+
|
250
|
+
# netsplits
|
251
|
+
netsplit = "%r$*%n";
|
252
|
+
netjoin = "%g$*%n";
|
253
|
+
|
254
|
+
# /names list
|
255
|
+
names_prefix = "";
|
256
|
+
names_nick = "[%_$0%_$1-] ";
|
257
|
+
names_nick_op = "{names_nick $*}";
|
258
|
+
names_nick_halfop = "{names_nick $*}";
|
259
|
+
names_nick_voice = "{names_nick $*}";
|
260
|
+
names_users = "[%g$*%n]";
|
261
|
+
names_channel = "%c$*%n";
|
262
|
+
|
263
|
+
# DCC
|
264
|
+
dcc = "%g$*%n";
|
265
|
+
dccfile = "%_$*%_";
|
266
|
+
|
267
|
+
# DCC chat, own msg/action
|
268
|
+
#dccownmsg = "[%r$0%K($1-%K)%n] ";
|
269
|
+
dccownmsg = "[%b$0%G($1-%G)%n] ";
|
270
|
+
dccownnick = "%b$*%n";
|
271
|
+
dccownquerynick = "%c$*%n";
|
272
|
+
dccownaction = "{action $*}";
|
273
|
+
dccownaction_target = "{action_core $0}%G:%c$1%n ";
|
274
|
+
|
275
|
+
# DCC chat, others
|
276
|
+
#dccmsg = "[%G$1-%K(%g$0%K)%n] ";
|
277
|
+
dccmsg = "[%g$1-%G($0%G)%n] ";
|
278
|
+
dccquerynick = "%g$*%n";
|
279
|
+
dccaction = "%c (*dcc*) $*%n %|";
|
280
|
+
|
281
|
+
##
|
282
|
+
## statusbar
|
283
|
+
##
|
284
|
+
|
285
|
+
# default background for all statusbars. You can also give
|
286
|
+
# the default foreground color for statusbar items.
|
287
|
+
# NOTE: if all the other overriding settings below are set, this only seems to affect
|
288
|
+
# the content parts of the adv_windowlist. Default seems to be blue
|
289
|
+
# NOTE: if not set, the default background seems to be %w%4 = white on blue
|
290
|
+
# %4 = blue
|
291
|
+
sb_background = "%k%6";
|
292
|
+
|
293
|
+
# default backround for "default" statusbar group
|
294
|
+
# NOTE: this impacts the statusbar of an inactive window and the edges of adv_windowlist
|
295
|
+
# %7 = white (wich looks gray on a regular terminal with white bg)
|
296
|
+
sb_default_bg = "%k%7";
|
297
|
+
|
298
|
+
# background for topicbar at the top (defaults to sb_default_bg)
|
299
|
+
sb_topic_bg = "%W%0";
|
300
|
+
|
301
|
+
# background for the statusbar of active window. You can also give
|
302
|
+
# the foreground color.
|
303
|
+
# %2 = green
|
304
|
+
sb_window_bg = "%k%2";
|
305
|
+
|
306
|
+
# background for prompt / input line
|
307
|
+
sb_prompt_bg = "%n";
|
308
|
+
# background for info statusbar
|
309
|
+
# %8 = reverse window
|
310
|
+
# TODO: To test for Solarized
|
311
|
+
sb_info_bg = "%8";
|
312
|
+
|
313
|
+
# text at the beginning of statusbars. sb-item already puts
|
314
|
+
# space there,so we don't use anything by default.
|
315
|
+
sbstart = "";
|
316
|
+
# text at the end of statusbars. Use space so that it's never
|
317
|
+
# used for anything.
|
318
|
+
sbend = " ";
|
319
|
+
|
320
|
+
topicsbstart = "{sbstart $*}";
|
321
|
+
topicsbend = "{sbend $*}";
|
322
|
+
|
323
|
+
prompt = "$c$*%n> ";
|
324
|
+
|
325
|
+
# This controls each part of a statusbor, including the outer brackets of adv_windowlist
|
326
|
+
sb = " $* %M|%n";
|
327
|
+
# The mode is next to your NICK and the channel
|
328
|
+
# %Y = brightyellow (Solarized: base00, i.e. 2nd darkest gray)
|
329
|
+
sbmode = "%b(%n+$*%b)%n";
|
330
|
+
sbaway = " (%GzZzZ%n)";
|
331
|
+
# %Y = brightyellow (Solarized: base00, i.e. 2nd darkest gray)
|
332
|
+
sbservertag = ":$0 %b(change with ^X)%n";
|
333
|
+
sbnickmode = "$0";
|
334
|
+
|
335
|
+
# activity in statusbar
|
336
|
+
|
337
|
+
# ',' separator between the window numbers
|
338
|
+
# %g = green (same color as the active statusbar so we dont' see it)
|
339
|
+
sb_act_sep = "%g$*";
|
340
|
+
# normal text
|
341
|
+
# This also affects the color of the window with activity in adv_windowlist
|
342
|
+
sb_act_text = "%w$*";
|
343
|
+
# public message (ordinary messages)
|
344
|
+
sb_act_msg = "%R$*";
|
345
|
+
# hilight (when people actually chat)
|
346
|
+
# This also affects the color of the window with direct message in adv_windowlist
|
347
|
+
sb_act_hilight = "%m$*";
|
348
|
+
# hilight with specified color, $0 = color, $1 = text
|
349
|
+
sb_act_hilight_color = "$0$1-%n";
|
350
|
+
|
351
|
+
### For usercount.pl script
|
352
|
+
|
353
|
+
#sb_usercount = "{sb %_$0%_ nicks ($1-)}";
|
354
|
+
sb_usercount = "{sb %_$0%_ users %Y(%n$1-%Y)%n}";
|
355
|
+
sb_uc_ircops = "%k*%n$*";
|
356
|
+
sb_uc_ops = "%k@%n$*";
|
357
|
+
sb_uc_halfops = "%k%%%n$*";
|
358
|
+
sb_uc_voices = "%k+%n$*";
|
359
|
+
sb_uc_normal = "$*";
|
360
|
+
# sb_uc_space = " ";
|
361
|
+
|
362
|
+
### For adv_windowlist.pl script
|
363
|
+
|
364
|
+
# Mentioned in adv_windowlist but not default_theme
|
365
|
+
#sb_act_none = "%0%W";
|
366
|
+
};
|
367
|
+
|
368
|
+
formats = {
|
369
|
+
"fe-common/core" = {
|
370
|
+
daychange = " %g-----%w-%W-%n Day changed to %%D %W-%w-%g-----%n";
|
371
|
+
};
|
372
|
+
};
|
data/etc/irssi/triggers
ADDED
data/etc/rails/template.rb
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
# Default Rails application template
|
3
3
|
#
|
4
4
|
|
5
|
+
# Place the following gems in the Gemfile
|
5
6
|
gem 'haml'
|
7
|
+
gem 'foreman'
|
6
8
|
|
7
9
|
gem_group :development do
|
8
10
|
gem 'haml-rails'
|
@@ -16,7 +18,8 @@ gem_group :test do
|
|
16
18
|
gem 'capybara'
|
17
19
|
end
|
18
20
|
|
19
|
-
#
|
21
|
+
# Set up the template engine and test framework to use when generating
|
22
|
+
# new resources in the course of development.
|
20
23
|
initializer "generators.rb", <<-RUBY
|
21
24
|
Rails.application.config.generators do |g|
|
22
25
|
g.template_engine :haml
|
@@ -24,28 +27,36 @@ Rails.application.config.generators do |g|
|
|
24
27
|
end
|
25
28
|
RUBY
|
26
29
|
|
27
|
-
|
30
|
+
# Create a Procfile for running the server and other workers as they
|
31
|
+
# become available.
|
32
|
+
file "Procfile" do
|
28
33
|
<<-RUBY
|
29
|
-
|
30
|
-
sh "rails server puma"
|
31
|
-
end
|
34
|
+
web: bundle exec rails server puma
|
32
35
|
RUBY
|
33
36
|
end
|
34
37
|
|
38
|
+
# Set up the shell environment and Travis-CI configuration
|
35
39
|
%w(.env .travis.yml).each do |name|
|
36
40
|
file(name) { IO.read File.expand_path("~/etc/rails/template/#{name}") }
|
37
41
|
end
|
38
42
|
|
43
|
+
# Generate the README and remove the default one
|
39
44
|
file("README.md") { "# #{app_name.titleize}" }
|
45
|
+
run "rm -rf README.rdoc"
|
46
|
+
|
47
|
+
# Install gem dependencies
|
48
|
+
run "bundle install"
|
40
49
|
|
41
50
|
# Set up the database
|
42
51
|
run "createuser -s #{app_name}"
|
43
52
|
rake 'db:create'
|
44
53
|
rake 'db:test:prepare'
|
45
54
|
|
46
|
-
#
|
47
|
-
run "bundle install"
|
48
|
-
|
55
|
+
# Install the test framework
|
56
|
+
run "bundle exec rails generate rspec:install && rm -rf test/"
|
57
|
+
|
58
|
+
# Remove unnecessary default files
|
59
|
+
run "rm -rf public/index.html"
|
49
60
|
|
50
|
-
|
61
|
+
# Initialize the repository
|
51
62
|
run "git init && git add . && git commit -am 'Initial commit.'"
|
data/lib/dots/aliases.zsh
CHANGED
@@ -17,6 +17,7 @@ alias fgt='forget'
|
|
17
17
|
# File viewing and editing
|
18
18
|
alias v=$PAGER
|
19
19
|
alias e='editor'
|
20
|
+
alias se='sudo editor'
|
20
21
|
|
21
22
|
# Terminal support
|
22
23
|
alias c='clear'
|
@@ -73,3 +74,6 @@ for cmd in $global_gems; do
|
|
73
74
|
compdef _$cmd global_$cmd=$cmd
|
74
75
|
fi
|
75
76
|
done
|
77
|
+
|
78
|
+
# Email reader
|
79
|
+
alias m='nocorrect mutt'
|