ro_commands 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/bin/ro_client +1 -0
- data/bin/ro_server +1 -1
- data/config/rorc.rb +1 -0
- data/lib/bash_builder.rb +10 -7
- data/lib/bash_builder_helper.rb +25 -23
- data/lib/bash_templates/file.sh +1 -0
- data/lib/bash_templates/git.sh +1 -0
- data/lib/bash_templates/jekyll.sh +3 -0
- data/lib/bash_templates/misc.sh +6 -39
- data/lib/bash_templates/ruby.sh +1 -0
- data/lib/bash_templates/rubymine_idea.sh +41 -0
- data/lib/bash_templates/shortcuts.sh +1 -1
- data/lib/bash_templates/video.sh +4 -0
- data/lib/builder_templates/set_envs.erb +3 -2
- data/lib/drb/client.rb +14 -4
- data/lib/drb/server.rb +2 -1
- data/lib/git_flow_builder_helper.rb +24 -22
- data/lib/rails_builder_helper.rb +31 -28
- data/lib/ro_commands/base.rb +13 -2
- data/lib/ro_commands/core_ext/string.rb +4 -0
- data/lib/ro_commands/core_ext/thor.rb +0 -71
- data/lib/ro_commands/dsl/{file.rb → ro_file.rb} +3 -4
- data/lib/ro_commands/generators/spec_file.rb +24 -17
- data/lib/ro_commands/generators/templates/ex.erb +4 -0
- data/lib/ro_commands/generators/templates/spec.erb +3 -0
- data/lib/ro_commands/helpers/bash.rb +33 -7
- data/lib/ro_commands/helpers/out.rb +61 -2
- data/lib/ro_commands/info.rb +12 -8
- data/lib/ro_commands/navigate.rb +5 -1
- data/lib/ro_commands/rails.rb +1 -1
- data/lib/ro_commands/shortcuts.rb +82 -3
- data/lib/ro_commands/try.rb +8 -1
- data/lib/ro_commands/version.rb +1 -1
- data/lib/ro_commands/zeus_templates/custom_plan.rb +15 -7
- data/lib/ro_commands/zeus_templates/zeus.json +12 -5
- data/lib/set_envs_helper.rb +70 -0
- data/ro_commands.sh +839 -0
- metadata +66 -5
- data/lib/shortcuts.rb +0 -43
data/ro_commands.sh
ADDED
@@ -0,0 +1,839 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
lib="$HOME/Dropbox/utils/lib"
|
4
|
+
learn="$HOME/Dropbox/learn"
|
5
|
+
ruby_projects="$HOME/Dropbox/ruby-projects"
|
6
|
+
js_java_projects="$HOME/Dropbox/js-java-projects"
|
7
|
+
work_project="$ruby_projects/ro_partner"
|
8
|
+
alias ro="bundle exec ro"
|
9
|
+
alias ro_client="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ro_commands-0.0.2/bin/ro_client"
|
10
|
+
alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ro_commands-0.0.2/bin/ro_server"
|
11
|
+
|
12
|
+
|
13
|
+
alias z='zeus'
|
14
|
+
|
15
|
+
alias zr='z rails'
|
16
|
+
|
17
|
+
alias g='z g'
|
18
|
+
|
19
|
+
alias d='z d'
|
20
|
+
|
21
|
+
alias zs='z s'
|
22
|
+
|
23
|
+
alias a='z g assets'
|
24
|
+
|
25
|
+
alias c='zr controller'
|
26
|
+
|
27
|
+
alias m='zr migration'
|
28
|
+
|
29
|
+
alias mo='zr model'
|
30
|
+
|
31
|
+
alias s='zr scaffold'
|
32
|
+
|
33
|
+
alias da='d assets'
|
34
|
+
|
35
|
+
alias dco='d controller'
|
36
|
+
|
37
|
+
alias dmo='d model'
|
38
|
+
|
39
|
+
alias dm='d migration'
|
40
|
+
|
41
|
+
alias ds='d scaffold'
|
42
|
+
|
43
|
+
alias mi='z rake db:migrate'
|
44
|
+
|
45
|
+
alias bx='bundle exec'
|
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
|
+
_da () {
|
71
|
+
local cur options command commands
|
72
|
+
_get_comp_words_by_ref cur
|
73
|
+
commands=$(ro_client rails get_assets)
|
74
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
75
|
+
|
76
|
+
if [ -z "($commands)" ]; then
|
77
|
+
echo '' >> /dev/null
|
78
|
+
else
|
79
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
80
|
+
fi
|
81
|
+
}
|
82
|
+
|
83
|
+
complete -o default -F _da da
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
_dco () {
|
88
|
+
local cur options command commands
|
89
|
+
_get_comp_words_by_ref cur
|
90
|
+
commands=$(ro_client rails get_controllers)
|
91
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
92
|
+
|
93
|
+
if [ -z "($commands)" ]; then
|
94
|
+
echo '' >> /dev/null
|
95
|
+
else
|
96
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
97
|
+
fi
|
98
|
+
}
|
99
|
+
|
100
|
+
complete -o default -F _dco dco
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
_dmo () {
|
105
|
+
local cur options command commands
|
106
|
+
_get_comp_words_by_ref cur
|
107
|
+
commands=$(ro_client rails get_models)
|
108
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
109
|
+
|
110
|
+
if [ -z "($commands)" ]; then
|
111
|
+
echo '' >> /dev/null
|
112
|
+
else
|
113
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
114
|
+
fi
|
115
|
+
}
|
116
|
+
|
117
|
+
complete -o default -F _dmo dmo
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
_dm () {
|
122
|
+
local cur options command commands
|
123
|
+
_get_comp_words_by_ref cur
|
124
|
+
commands=$(ro_client rails get_migrations)
|
125
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
126
|
+
|
127
|
+
if [ -z "($commands)" ]; then
|
128
|
+
echo '' >> /dev/null
|
129
|
+
else
|
130
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
131
|
+
fi
|
132
|
+
}
|
133
|
+
|
134
|
+
complete -o default -F _dm dm
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
_ds () {
|
139
|
+
local cur options command commands
|
140
|
+
_get_comp_words_by_ref cur
|
141
|
+
commands=$(ro_client rails get_scaffolds)
|
142
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
143
|
+
|
144
|
+
if [ -z "($commands)" ]; then
|
145
|
+
echo '' >> /dev/null
|
146
|
+
else
|
147
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
148
|
+
fi
|
149
|
+
}
|
150
|
+
|
151
|
+
complete -o default -F _ds ds
|
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
|
+
_da () {
|
180
|
+
local cur options command commands
|
181
|
+
_get_comp_words_by_ref cur
|
182
|
+
commands=$(ro_client rails get_assets)
|
183
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
184
|
+
|
185
|
+
if [ -z "($commands)" ]; then
|
186
|
+
echo '' >> /dev/null
|
187
|
+
else
|
188
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
189
|
+
fi
|
190
|
+
}
|
191
|
+
|
192
|
+
complete -o default -F _da da
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
_dco () {
|
197
|
+
local cur options command commands
|
198
|
+
_get_comp_words_by_ref cur
|
199
|
+
commands=$(ro_client rails get_controllers)
|
200
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
201
|
+
|
202
|
+
if [ -z "($commands)" ]; then
|
203
|
+
echo '' >> /dev/null
|
204
|
+
else
|
205
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
206
|
+
fi
|
207
|
+
}
|
208
|
+
|
209
|
+
complete -o default -F _dco dco
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
_dmo () {
|
214
|
+
local cur options command commands
|
215
|
+
_get_comp_words_by_ref cur
|
216
|
+
commands=$(ro_client rails get_models)
|
217
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
218
|
+
|
219
|
+
if [ -z "($commands)" ]; then
|
220
|
+
echo '' >> /dev/null
|
221
|
+
else
|
222
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
223
|
+
fi
|
224
|
+
}
|
225
|
+
|
226
|
+
complete -o default -F _dmo dmo
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
_dm () {
|
231
|
+
local cur options command commands
|
232
|
+
_get_comp_words_by_ref cur
|
233
|
+
commands=$(ro_client rails get_migrations)
|
234
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
235
|
+
|
236
|
+
if [ -z "($commands)" ]; then
|
237
|
+
echo '' >> /dev/null
|
238
|
+
else
|
239
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
240
|
+
fi
|
241
|
+
}
|
242
|
+
|
243
|
+
complete -o default -F _dm dm
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
_ds () {
|
248
|
+
local cur options command commands
|
249
|
+
_get_comp_words_by_ref cur
|
250
|
+
commands=$(ro_client rails get_scaffolds)
|
251
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
252
|
+
|
253
|
+
if [ -z "($commands)" ]; then
|
254
|
+
echo '' >> /dev/null
|
255
|
+
else
|
256
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
257
|
+
fi
|
258
|
+
}
|
259
|
+
|
260
|
+
complete -o default -F _ds ds
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
alias z='zeus'
|
270
|
+
|
271
|
+
alias zr='z rails'
|
272
|
+
|
273
|
+
alias g='z g'
|
274
|
+
|
275
|
+
alias d='z d'
|
276
|
+
|
277
|
+
alias zs='z s'
|
278
|
+
|
279
|
+
alias a='z g assets'
|
280
|
+
|
281
|
+
alias c='zr controller'
|
282
|
+
|
283
|
+
alias m='zr migration'
|
284
|
+
|
285
|
+
alias mo='zr model'
|
286
|
+
|
287
|
+
alias s='zr scaffold'
|
288
|
+
|
289
|
+
alias da='d assets'
|
290
|
+
|
291
|
+
alias dco='d controller'
|
292
|
+
|
293
|
+
alias dmo='d model'
|
294
|
+
|
295
|
+
alias dm='d migration'
|
296
|
+
|
297
|
+
alias ds='d scaffold'
|
298
|
+
|
299
|
+
alias mi='z rake db:migrate'
|
300
|
+
|
301
|
+
alias bx='bundle exec'
|
302
|
+
|
303
|
+
alias z='zeus'
|
304
|
+
|
305
|
+
alias zr='z rails'
|
306
|
+
|
307
|
+
alias g='z g'
|
308
|
+
|
309
|
+
alias d='z d'
|
310
|
+
|
311
|
+
alias zs='z s'
|
312
|
+
|
313
|
+
alias a='z g assets'
|
314
|
+
|
315
|
+
alias c='zr controller'
|
316
|
+
|
317
|
+
alias m='zr migration'
|
318
|
+
|
319
|
+
alias mo='zr model'
|
320
|
+
|
321
|
+
alias s='zr scaffold'
|
322
|
+
|
323
|
+
alias da='d assets'
|
324
|
+
|
325
|
+
alias dco='d controller'
|
326
|
+
|
327
|
+
alias dmo='d model'
|
328
|
+
|
329
|
+
alias dm='d migration'
|
330
|
+
|
331
|
+
alias ds='d scaffold'
|
332
|
+
|
333
|
+
alias mi='z rake db:migrate'
|
334
|
+
|
335
|
+
alias bx='bundle exec'
|
336
|
+
|
337
|
+
alias gfi='git init && git flow init -f'
|
338
|
+
|
339
|
+
alias fr='git flow release'
|
340
|
+
|
341
|
+
alias frf='fr finish'
|
342
|
+
|
343
|
+
alias frp='fr publish'
|
344
|
+
|
345
|
+
alias ff='git flow feature'
|
346
|
+
|
347
|
+
alias frs='git flow release start'
|
348
|
+
|
349
|
+
alias ffs='git flow feature start'
|
350
|
+
|
351
|
+
alias fff='ff finish'
|
352
|
+
|
353
|
+
alias ffc='ff checkout'
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
_da () {
|
379
|
+
local cur options command commands
|
380
|
+
_get_comp_words_by_ref cur
|
381
|
+
commands=$(ro_client rails get_assets)
|
382
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
383
|
+
|
384
|
+
if [ -z "($commands)" ]; then
|
385
|
+
echo '' >> /dev/null
|
386
|
+
else
|
387
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
388
|
+
fi
|
389
|
+
}
|
390
|
+
|
391
|
+
complete -o default -F _da da
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
_dco () {
|
396
|
+
local cur options command commands
|
397
|
+
_get_comp_words_by_ref cur
|
398
|
+
commands=$(ro_client rails get_controllers)
|
399
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
400
|
+
|
401
|
+
if [ -z "($commands)" ]; then
|
402
|
+
echo '' >> /dev/null
|
403
|
+
else
|
404
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
405
|
+
fi
|
406
|
+
}
|
407
|
+
|
408
|
+
complete -o default -F _dco dco
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
_dmo () {
|
413
|
+
local cur options command commands
|
414
|
+
_get_comp_words_by_ref cur
|
415
|
+
commands=$(ro_client rails get_models)
|
416
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
417
|
+
|
418
|
+
if [ -z "($commands)" ]; then
|
419
|
+
echo '' >> /dev/null
|
420
|
+
else
|
421
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
422
|
+
fi
|
423
|
+
}
|
424
|
+
|
425
|
+
complete -o default -F _dmo dmo
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
_dm () {
|
430
|
+
local cur options command commands
|
431
|
+
_get_comp_words_by_ref cur
|
432
|
+
commands=$(ro_client rails get_migrations)
|
433
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
434
|
+
|
435
|
+
if [ -z "($commands)" ]; then
|
436
|
+
echo '' >> /dev/null
|
437
|
+
else
|
438
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
439
|
+
fi
|
440
|
+
}
|
441
|
+
|
442
|
+
complete -o default -F _dm dm
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
_ds () {
|
447
|
+
local cur options command commands
|
448
|
+
_get_comp_words_by_ref cur
|
449
|
+
commands=$(ro_client rails get_scaffolds)
|
450
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
451
|
+
|
452
|
+
if [ -z "($commands)" ]; then
|
453
|
+
echo '' >> /dev/null
|
454
|
+
else
|
455
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
456
|
+
fi
|
457
|
+
}
|
458
|
+
|
459
|
+
complete -o default -F _ds ds
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
_da () {
|
488
|
+
local cur options command commands
|
489
|
+
_get_comp_words_by_ref cur
|
490
|
+
commands=$(ro_client rails get_assets)
|
491
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
492
|
+
|
493
|
+
if [ -z "($commands)" ]; then
|
494
|
+
echo '' >> /dev/null
|
495
|
+
else
|
496
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
497
|
+
fi
|
498
|
+
}
|
499
|
+
|
500
|
+
complete -o default -F _da da
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
_dco () {
|
505
|
+
local cur options command commands
|
506
|
+
_get_comp_words_by_ref cur
|
507
|
+
commands=$(ro_client rails get_controllers)
|
508
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
509
|
+
|
510
|
+
if [ -z "($commands)" ]; then
|
511
|
+
echo '' >> /dev/null
|
512
|
+
else
|
513
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
514
|
+
fi
|
515
|
+
}
|
516
|
+
|
517
|
+
complete -o default -F _dco dco
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
_dmo () {
|
522
|
+
local cur options command commands
|
523
|
+
_get_comp_words_by_ref cur
|
524
|
+
commands=$(ro_client rails get_models)
|
525
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
526
|
+
|
527
|
+
if [ -z "($commands)" ]; then
|
528
|
+
echo '' >> /dev/null
|
529
|
+
else
|
530
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
531
|
+
fi
|
532
|
+
}
|
533
|
+
|
534
|
+
complete -o default -F _dmo dmo
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
_dm () {
|
539
|
+
local cur options command commands
|
540
|
+
_get_comp_words_by_ref cur
|
541
|
+
commands=$(ro_client rails get_migrations)
|
542
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
543
|
+
|
544
|
+
if [ -z "($commands)" ]; then
|
545
|
+
echo '' >> /dev/null
|
546
|
+
else
|
547
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
548
|
+
fi
|
549
|
+
}
|
550
|
+
|
551
|
+
complete -o default -F _dm dm
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
_ds () {
|
556
|
+
local cur options command commands
|
557
|
+
_get_comp_words_by_ref cur
|
558
|
+
commands=$(ro_client rails get_scaffolds)
|
559
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
560
|
+
|
561
|
+
if [ -z "($commands)" ]; then
|
562
|
+
echo '' >> /dev/null
|
563
|
+
else
|
564
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
565
|
+
fi
|
566
|
+
}
|
567
|
+
|
568
|
+
complete -o default -F _ds ds
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
_frf () {
|
581
|
+
local cur options command commands
|
582
|
+
_get_comp_words_by_ref cur
|
583
|
+
commands=$(zeus git_flow get_releases)
|
584
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
585
|
+
|
586
|
+
if [ -z "($commands)" ]; then
|
587
|
+
echo '' >> /dev/null
|
588
|
+
else
|
589
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
590
|
+
fi
|
591
|
+
}
|
592
|
+
|
593
|
+
complete -o default -F _frf frf
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
_frp () {
|
598
|
+
local cur options command commands
|
599
|
+
_get_comp_words_by_ref cur
|
600
|
+
commands=$(zeus git_flow get_releases)
|
601
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
602
|
+
|
603
|
+
if [ -z "($commands)" ]; then
|
604
|
+
echo '' >> /dev/null
|
605
|
+
else
|
606
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
607
|
+
fi
|
608
|
+
}
|
609
|
+
|
610
|
+
complete -o default -F _frp frp
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
_fff () {
|
621
|
+
local cur options command commands
|
622
|
+
_get_comp_words_by_ref cur
|
623
|
+
commands=$(zeus git_flow get_features)
|
624
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
625
|
+
|
626
|
+
if [ -z "($commands)" ]; then
|
627
|
+
echo '' >> /dev/null
|
628
|
+
else
|
629
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
630
|
+
fi
|
631
|
+
}
|
632
|
+
|
633
|
+
complete -o default -F _fff fff
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
_ffc () {
|
638
|
+
local cur options command commands
|
639
|
+
_get_comp_words_by_ref cur
|
640
|
+
commands=$(zeus git flow get_features)
|
641
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
642
|
+
|
643
|
+
if [ -z "($commands)" ]; then
|
644
|
+
echo '' >> /dev/null
|
645
|
+
else
|
646
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
647
|
+
fi
|
648
|
+
}
|
649
|
+
|
650
|
+
complete -o default -F _ffc ffc
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
_frf () {
|
659
|
+
local cur options command commands
|
660
|
+
_get_comp_words_by_ref cur
|
661
|
+
commands=$(zeus git_flow get_releases)
|
662
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
663
|
+
|
664
|
+
if [ -z "($commands)" ]; then
|
665
|
+
echo '' >> /dev/null
|
666
|
+
else
|
667
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
668
|
+
fi
|
669
|
+
}
|
670
|
+
|
671
|
+
complete -o default -F _frf frf
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
_frp () {
|
676
|
+
local cur options command commands
|
677
|
+
_get_comp_words_by_ref cur
|
678
|
+
commands=$(zeus git_flow get_releases)
|
679
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
680
|
+
|
681
|
+
if [ -z "($commands)" ]; then
|
682
|
+
echo '' >> /dev/null
|
683
|
+
else
|
684
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
685
|
+
fi
|
686
|
+
}
|
687
|
+
|
688
|
+
complete -o default -F _frp frp
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
_fff () {
|
699
|
+
local cur options command commands
|
700
|
+
_get_comp_words_by_ref cur
|
701
|
+
commands=$(zeus git_flow get_features)
|
702
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
703
|
+
|
704
|
+
if [ -z "($commands)" ]; then
|
705
|
+
echo '' >> /dev/null
|
706
|
+
else
|
707
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
708
|
+
fi
|
709
|
+
}
|
710
|
+
|
711
|
+
complete -o default -F _fff fff
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
_ffc () {
|
716
|
+
local cur options command commands
|
717
|
+
_get_comp_words_by_ref cur
|
718
|
+
commands=$(zeus git flow get_features)
|
719
|
+
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
720
|
+
|
721
|
+
if [ -z "($commands)" ]; then
|
722
|
+
echo '' >> /dev/null
|
723
|
+
else
|
724
|
+
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
725
|
+
fi
|
726
|
+
}
|
727
|
+
|
728
|
+
complete -o default -F _ffc ffc
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
alias list="ro info list ."
|
733
|
+
|
734
|
+
alias guard="bundle exec guard"
|
735
|
+
|
736
|
+
|
737
|
+
alias sp="smplayer"
|
738
|
+
function record() {
|
739
|
+
recordmydesktop --no-sound --output=$1
|
740
|
+
}
|
741
|
+
|
742
|
+
alias work="ro shortcuts work"
|
743
|
+
|
744
|
+
alias ga='git add'
|
745
|
+
alias gaa='ga .'
|
746
|
+
alias gb='git branch'
|
747
|
+
alias gco='git checkout'
|
748
|
+
alias gc='git commit -am'
|
749
|
+
alias gi='git add -i'
|
750
|
+
alias gl='git log --oneline --all --color --graph --decorate'
|
751
|
+
alias gm='git merge'
|
752
|
+
alias gp='git push -u origin master'
|
753
|
+
alias gst='git status'
|
754
|
+
|
755
|
+
|
756
|
+
#idea
|
757
|
+
alias i='idea `pwd`'
|
758
|
+
|
759
|
+
#rubymine
|
760
|
+
alias r='rubymine `pwd`'
|
761
|
+
alias libspec="ro shortcuts lib_spec"
|
762
|
+
|
763
|
+
cdir () {
|
764
|
+
path=`ro_client navigate get_dir $1`
|
765
|
+
echo "cd $path"
|
766
|
+
cd "$path"
|
767
|
+
}
|
768
|
+
|
769
|
+
odir () {
|
770
|
+
cdir $1
|
771
|
+
rubymine .
|
772
|
+
}
|
773
|
+
|
774
|
+
# cd to project path
|
775
|
+
cpj () {
|
776
|
+
path=`ro_client navigate get_project $1`
|
777
|
+
echo "cd $path"
|
778
|
+
cd "$path"
|
779
|
+
}
|
780
|
+
|
781
|
+
pj () {
|
782
|
+
cpj $1
|
783
|
+
rubymine "$path"
|
784
|
+
}
|
785
|
+
|
786
|
+
cjpj () {
|
787
|
+
path=`ro_client navigate get_project $1 java`
|
788
|
+
echo "opening $path"
|
789
|
+
cd "$path"
|
790
|
+
}
|
791
|
+
|
792
|
+
jpj () {
|
793
|
+
path=`ro_client navigate get_project $1 java`
|
794
|
+
echo "opening $path"
|
795
|
+
cd "$path"
|
796
|
+
idea "$path"
|
797
|
+
}
|
798
|
+
|
799
|
+
alias rco="ro shortcuts open_ro_commands"
|
800
|
+
alias rsu="ro shortcuts open_ro_support"
|
801
|
+
|
802
|
+
|
803
|
+
alias spec="ro generate spec_file"
|
804
|
+
alias ex="ro generate ex"
|
805
|
+
alias dl="cd ~/Downloads"
|
806
|
+
alias sshproxy="sudo service ssh-proxy"
|
807
|
+
alias roserver="sudo service ro_server"
|
808
|
+
|
809
|
+
# cd to dir
|
810
|
+
rp () {
|
811
|
+
cd "$ruby_projects"
|
812
|
+
}
|
813
|
+
|
814
|
+
dp () {
|
815
|
+
cd "~/Dropbox"
|
816
|
+
}
|
817
|
+
|
818
|
+
# js java project
|
819
|
+
alias jp="cd $js_java_projects"
|
820
|
+
|
821
|
+
alias fas="ro_client file_actions"
|
822
|
+
alias rps="ro_client ro_procs"
|
823
|
+
alias rclocal="sudo rubymine /etc/rc.local"
|
824
|
+
alias wp='working_project'
|
825
|
+
|
826
|
+
alias work_project="cd $work_project"
|
827
|
+
alias l="cd $learn"
|
828
|
+
|
829
|
+
#find railscasts
|
830
|
+
alias rc="ro_client file_actions find_railscasts"
|
831
|
+
|
832
|
+
# reload ~/bashrc.erb
|
833
|
+
alias rb="source ~/.bashrc"
|
834
|
+
|
835
|
+
alias proxy="http_proxy='socks5://127.0.0.1:1080'"
|
836
|
+
|
837
|
+
alias jk="jekyll"
|
838
|
+
alias jks="jekyll server"
|
839
|
+
|