aka2 0.1.4 → 0.1.5
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/README.md +28 -3
- data/changelog.md +6 -0
- data/lib/aka.rb +209 -123
- data/lib/aka/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dd3054713f6cd4b14b82d735ebcbb3ba45b8681
|
4
|
+
data.tar.gz: 342f7668d15f7fa58ac224e3c781ca0aac586fcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4075e00f23a0a803010096dfc4cadd3a7defa860f6f4ddb323284a0428ee4feedc020b32b03248eb851be6b5853ddc47b7585f3288b17656bf6196488178b348
|
7
|
+
data.tar.gz: 5b8291f3a7aed0702ff01b73bdb55c14361de14db168dca3a354029d606a7b6bce36c09cfe70d7e6b8c915f84dd252f3c77fbe71d49960411b57a802b0e393b1
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# aka - The Missing Alias Manager
|
2
2
|
|
3
|
+
[](http://badge.fury.io/rb/aka2)
|
4
|
+
|
3
5
|
aka generate/edit/destroy/find permanent aliases with a single command.
|
4
6
|
|
5
7
|
aka2 requires ruby and is built for bash and zsh users.
|
@@ -10,17 +12,40 @@ aka2 requires ruby and is built for bash and zsh users.
|
|
10
12
|
$ aka setup
|
11
13
|
|
12
14
|
If you wish to reinstall aka setup
|
13
|
-
|
15
|
+
|
14
16
|
$ aka setup --reset
|
15
|
-
|
17
|
+
|
16
18
|
## Usage
|
17
19
|
|
20
|
+
To generate new aka
|
21
|
+
|
18
22
|
$ aka generate hello="echo helloworld"
|
23
|
+
$ aka g hello="echo helloworld"
|
24
|
+
|
25
|
+
To destroy aka
|
26
|
+
|
19
27
|
$ aka destroy hello
|
28
|
+
$ aka d hello
|
29
|
+
|
30
|
+
To edit aka command
|
31
|
+
|
20
32
|
$ aka edit hello
|
33
|
+
|
34
|
+
To edit aka alias name
|
35
|
+
|
36
|
+
$ aka edit hello --name
|
37
|
+
|
38
|
+
To find a aka command
|
39
|
+
|
21
40
|
$ aka find hello
|
22
|
-
|
41
|
+
|
42
|
+
To list all aka created
|
43
|
+
|
23
44
|
$ aka
|
45
|
+
$ aka list
|
46
|
+
|
47
|
+
To list down available command
|
48
|
+
|
24
49
|
$ aka help
|
25
50
|
|
26
51
|
## Requirement
|
data/changelog.md
CHANGED
data/lib/aka.rb
CHANGED
@@ -128,13 +128,13 @@ module Aka
|
|
128
128
|
end
|
129
129
|
|
130
130
|
#
|
131
|
-
#
|
131
|
+
# SETUP_old
|
132
132
|
#
|
133
|
-
desc "setup_old", "setup aka"
|
134
|
-
method_options :force => :boolean
|
135
|
-
def setup_old
|
136
|
-
|
137
|
-
end
|
133
|
+
# desc "setup_old", "setup aka"
|
134
|
+
# method_options :force => :boolean
|
135
|
+
# def setup_old
|
136
|
+
# setup_aka_old
|
137
|
+
# end
|
138
138
|
|
139
139
|
#
|
140
140
|
# first step: set config file
|
@@ -144,6 +144,7 @@ module Aka
|
|
144
144
|
def setup
|
145
145
|
configDir = "#{Dir.home}/.aka"
|
146
146
|
if options.reset? && File.exist?("#{configDir}")
|
147
|
+
remove_autosource
|
147
148
|
FileUtils.rm_r("#{configDir}")
|
148
149
|
puts "#{configDir} is removed"
|
149
150
|
end
|
@@ -154,6 +155,7 @@ module Aka
|
|
154
155
|
else
|
155
156
|
setup_config # create and setup .config file
|
156
157
|
setup_aka # put value in .config file
|
158
|
+
puts "setting up autosource"
|
157
159
|
setup_autosource # create, link source file
|
158
160
|
puts "Congratulation, aka is setup in #{configDir}"
|
159
161
|
end
|
@@ -166,7 +168,7 @@ module Aka
|
|
166
168
|
method_options :force => :boolean
|
167
169
|
def find *args
|
168
170
|
args.each_with_index do |value, index|
|
169
|
-
|
171
|
+
search_alias_return_alias_tokens(value)
|
170
172
|
end
|
171
173
|
end
|
172
174
|
|
@@ -175,39 +177,40 @@ module Aka
|
|
175
177
|
#
|
176
178
|
desc "edit", "edit an alias(short alias: e)"
|
177
179
|
method_options :force => :boolean
|
180
|
+
method_options :name => :boolean #--name
|
178
181
|
def edit args
|
179
182
|
if args
|
180
183
|
values = args.split("=")
|
181
184
|
if values.size > 1
|
182
|
-
truth, _alias =
|
185
|
+
truth, _alias = search_alias_return_alias_tokens(args)
|
183
186
|
if truth == true
|
184
187
|
if options.name
|
185
188
|
remove(_alias) #remove that alias
|
186
|
-
|
189
|
+
edit_alias_name(values[1], _alias) #edit that alias
|
187
190
|
reload_dot_file() if !options.noreload
|
188
191
|
else
|
189
192
|
remove(_alias) #remove that alias
|
190
|
-
|
193
|
+
edit_alias_command(values[1], _alias) #edit that alias
|
191
194
|
reload_dot_file() if !options.noreload
|
192
195
|
end
|
193
196
|
else
|
194
197
|
puts "Alias '#{args}' cannot be found".red
|
195
198
|
end
|
196
199
|
else
|
197
|
-
truth, _alias, command =
|
200
|
+
truth, _alias, command = search_alias_return_alias_tokens(args)
|
198
201
|
if truth == true
|
199
202
|
if options.name
|
200
203
|
input = ask "Enter a new alias for command '#{command}'?\n"
|
201
204
|
if yes? "Please confirm the new alias? (y/N)"
|
202
205
|
remove(_alias) #remove that alias
|
203
|
-
|
206
|
+
edit_alias_name(input, command) #edit that alias
|
204
207
|
reload_dot_file() if !options.noreload
|
205
208
|
end
|
206
209
|
else
|
207
210
|
input = ask "Enter a new command for alias '#{args}'?\n"
|
208
211
|
if yes? "Please confirm the new command? (y/N)"
|
209
212
|
remove(_alias) #remove that alias
|
210
|
-
|
213
|
+
edit_alias_command(input, _alias) #edit that alias
|
211
214
|
reload_dot_file() if !options.noreload
|
212
215
|
end
|
213
216
|
end
|
@@ -222,20 +225,20 @@ module Aka
|
|
222
225
|
#
|
223
226
|
# LIST OUT
|
224
227
|
#
|
225
|
-
desc "list_old", "list alias (short alias: l)"
|
226
|
-
method_options :force => :boolean
|
227
|
-
def list_old(args=nil)
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
end
|
228
|
+
# desc "list_old", "list alias (short alias: l)"
|
229
|
+
# method_options :force => :boolean
|
230
|
+
# def list_old(args=nil)
|
231
|
+
# if args != nil
|
232
|
+
# showlast_old(args.to_i)
|
233
|
+
# else
|
234
|
+
# value = readYML("#{Dir.home}/.aka/.config")["list"]
|
235
|
+
# showlast_old(value.to_i) #this is unsafe
|
236
|
+
# end
|
237
|
+
#
|
238
|
+
# #total of #{} exports #functions
|
239
|
+
# puts "A total of #{count()} aliases,#{count_export} exports and #{count_function} functions from #{readYML("#{Dir.home}/.aka/.config")["dotfile"]}"
|
240
|
+
# reload_dot_file
|
241
|
+
# end
|
239
242
|
|
240
243
|
#
|
241
244
|
# LIST OUT - ryan - remove numbering
|
@@ -252,37 +255,37 @@ module Aka
|
|
252
255
|
|
253
256
|
#total of #{} exports #functions
|
254
257
|
puts "A total of #{count()} aliases,#{count_export} exports and #{count_function} functions from #{readYML("#{Dir.home}/.aka/.config")["dotfile"]}"
|
255
|
-
reload_dot_file
|
256
258
|
puts "\nUse 'aka -h' to see all the useful commands.\n\n"
|
259
|
+
reload_dot_file
|
257
260
|
end
|
258
261
|
|
259
262
|
#
|
260
263
|
# USAGE
|
261
264
|
#
|
262
|
-
desc "usage_old [number]", "show commands usage based on history"
|
263
|
-
# method_options :least, :type => :boolean, :aliases => '-l', :desc => 'show the least used commands'
|
264
|
-
# method_options :clear, :type => :boolean, :aliases => '-c', :desc => 'clear the dot history file'
|
265
|
-
def usage_old(args=nil)
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
end
|
265
|
+
# desc "usage_old [number]", "show commands usage based on history"
|
266
|
+
# # method_options :least, :type => :boolean, :aliases => '-l', :desc => 'show the least used commands'
|
267
|
+
# # method_options :clear, :type => :boolean, :aliases => '-c', :desc => 'clear the dot history file'
|
268
|
+
# def usage_old(args=nil)
|
269
|
+
# if args
|
270
|
+
# if options.least
|
271
|
+
# showUsage(args.to_i, true) if args
|
272
|
+
# else
|
273
|
+
# showUsage(args.to_i) if args
|
274
|
+
# end
|
275
|
+
# else
|
276
|
+
# if options.least
|
277
|
+
# value = readYML("#{Dir.home}/.aka/.config")["usage"]
|
278
|
+
# showlast_old(value.to_i, true) #this is unsafe
|
279
|
+
# else
|
280
|
+
# value = readYML("#{Dir.home}/.aka/.config")["usage"]
|
281
|
+
# showlast_old(value.to_i) #this is unsafe
|
282
|
+
# end
|
283
|
+
# end
|
284
|
+
#
|
285
|
+
# if options[:clear]
|
286
|
+
# puts "clear the dot history file"
|
287
|
+
# end
|
288
|
+
# end
|
286
289
|
|
287
290
|
#
|
288
291
|
# USAGE - ryan - remove numbering in front
|
@@ -316,24 +319,24 @@ module Aka
|
|
316
319
|
#
|
317
320
|
# INSTALL
|
318
321
|
#
|
319
|
-
desc "install [name]", "install aka"
|
320
|
-
method_options :force => :boolean
|
321
|
-
def install
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
end
|
322
|
+
# desc "install [name]", "install aka"
|
323
|
+
# method_options :force => :boolean
|
324
|
+
# def install
|
325
|
+
# if File.exist? "#{Dir.pwd}/aka"
|
326
|
+
# if File.exist? "/usr/local/bin/aka"
|
327
|
+
# if yes? "aka exists. Do you want to replace it? (yN)"
|
328
|
+
# FileUtils.rm("/usr/local/bin/aka")
|
329
|
+
# system("ln -s #{Dir.pwd}/aka /usr/local/bin/aka")
|
330
|
+
# puts "aka replaced."
|
331
|
+
# end
|
332
|
+
# else
|
333
|
+
# result = system("ln -s #{Dir.pwd}/aka /usr/local/bin/aka")
|
334
|
+
# puts "aka installed."
|
335
|
+
# end
|
336
|
+
# else
|
337
|
+
# puts "Cannot find aka.".red
|
338
|
+
# end
|
339
|
+
# end
|
337
340
|
|
338
341
|
#
|
339
342
|
# INIT
|
@@ -409,7 +412,7 @@ module Aka
|
|
409
412
|
if File.exists? path
|
410
413
|
return YAML.load_file(path)
|
411
414
|
else
|
412
|
-
puts "#{Dir.home}/.aka/.config does not exist. Type `aka
|
415
|
+
puts "#{Dir.home}/.aka/.config does not exist. Type `aka setup` to setup the config file".red
|
413
416
|
end
|
414
417
|
end
|
415
418
|
|
@@ -500,7 +503,7 @@ module Aka
|
|
500
503
|
|
501
504
|
# add
|
502
505
|
def add input
|
503
|
-
if input and
|
506
|
+
if input and search_alias_return_alias_tokens(input).first == false and not_empty_alias(input) == false
|
504
507
|
array = input.split("=")
|
505
508
|
full_command = "alias #{array.first}='#{array[1]}'".gsub("\n","") #remove new line in command
|
506
509
|
print_out_command = "aka g #{array.first}='#{array[1]}'"
|
@@ -524,18 +527,30 @@ module Aka
|
|
524
527
|
end
|
525
528
|
|
526
529
|
# show alias
|
527
|
-
def
|
530
|
+
def search_alias_return_alias_tokens argument
|
528
531
|
str = checkConfigFile(readYML("#{Dir.home}/.aka/.config")["dotfile"])
|
529
|
-
|
532
|
+
# alias something="echo something"
|
530
533
|
if content = File.open(str).read
|
531
534
|
content.gsub!(/\r\n?/, "\n")
|
532
535
|
content_array = content.split("\n")
|
533
536
|
content_array.each_with_index { |line, index|
|
534
537
|
value = line.split(" ")
|
538
|
+
puts "value -> #{value}"
|
539
|
+
containsCommand = line.split('=') #containsCommand[1]
|
535
540
|
if value.length > 1 and value.first == "alias"
|
536
|
-
answer = value[1].split("=")
|
541
|
+
# answer = value[1].split("=")
|
542
|
+
answer = value[1].split("=") #contains the alias
|
543
|
+
|
544
|
+
puts "answer -> #{answer}"
|
537
545
|
if found?(answer.first, argument.split("=").first, line) == true
|
538
|
-
|
546
|
+
this_alias = answer.first
|
547
|
+
answer.slice!(0) #rmove the first
|
548
|
+
puts "before ->#{containsCommand[1]}"
|
549
|
+
containsCommand[1].slice!(0) and containsCommand[1].slice!(containsCommand[1].length-1) if containsCommand[1] != nil and containsCommand[1][0] == "'" and containsCommand[1][containsCommand[1].length-1] == "'"
|
550
|
+
puts "before 2 ->#{containsCommand[1]}"
|
551
|
+
|
552
|
+
puts "join ->#{containsCommand[1]}"
|
553
|
+
return [true, this_alias, containsCommand[1]]
|
539
554
|
end
|
540
555
|
end
|
541
556
|
}
|
@@ -575,6 +590,28 @@ module Aka
|
|
575
590
|
end
|
576
591
|
end
|
577
592
|
|
593
|
+
# remove autosource in dotfile
|
594
|
+
def remove_autosource
|
595
|
+
|
596
|
+
str = checkConfigFile(readYML("#{Dir.home}/.aka/.config")["dotfile"])
|
597
|
+
|
598
|
+
if content=File.open(str).read
|
599
|
+
content.gsub!(/\r\n?/, "\n")
|
600
|
+
content_array= content.split("\n")
|
601
|
+
content_array.each_with_index { |line, index|
|
602
|
+
if line == "source \"/home/ryan/.aka/autosource\""
|
603
|
+
content_array.delete_at(index) and write_with_newline(content_array)
|
604
|
+
puts "---> removed: source \"/home/ryan/.aka/autosource\""
|
605
|
+
return true
|
606
|
+
end
|
607
|
+
}
|
608
|
+
|
609
|
+
else
|
610
|
+
puts "---> autosource cannot be found in dotfile.".red
|
611
|
+
return false
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
578
615
|
# history
|
579
616
|
def history
|
580
617
|
|
@@ -618,15 +655,14 @@ module Aka
|
|
618
655
|
end
|
619
656
|
end
|
620
657
|
|
621
|
-
|
622
|
-
def edit_this newcommand, this_alias
|
658
|
+
def edit_alias_command newcommand, this_alias
|
623
659
|
puts "new: aka g #{this_alias}='#{newcommand}'"
|
624
660
|
return append("alias " + this_alias + "='" + newcommand + "'", readYML("#{Dir.home}/.aka/.config")["dotfile"] )
|
625
661
|
end
|
626
662
|
|
627
663
|
# edit alias
|
628
|
-
def
|
629
|
-
puts "new: aka g #{
|
664
|
+
def edit_alias_name newalias, thiscommand
|
665
|
+
puts "new: aka g #{newalias}='#{thiscommand}'"
|
630
666
|
return append("alias " + newalias + "='" + thiscommand + "'", readYML("#{Dir.home}/.aka/.config")["dotfile"] )
|
631
667
|
end
|
632
668
|
|
@@ -688,55 +724,105 @@ module Aka
|
|
688
724
|
end
|
689
725
|
|
690
726
|
# setup_aka_old
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
sigusr1() { source #{readYML("#{Dir.home}/.aka/.config")["dotfile"]}; history -a; echo 'reloaded dot file'; }
|
695
|
-
trap sigusr1 SIGUSR1
|
696
|
-
trap 'sigusr2 $(cat ~/sigusr1-args)' SIGUSR2\n".pretty
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
727
|
+
# def setup_aka_old
|
728
|
+
# append_with_newline("export HISTSIZE=10000","/etc/profile")
|
729
|
+
# trap = "sigusr2() { unalias $1;}
|
730
|
+
# sigusr1() { source #{readYML("#{Dir.home}/.aka/.config")["dotfile"]}; history -a; echo 'reloaded dot file'; }
|
731
|
+
# trap sigusr1 SIGUSR1
|
732
|
+
# trap 'sigusr2 $(cat ~/sigusr1-args)' SIGUSR2\n".pretty
|
733
|
+
# append(trap, readYML("#{Dir.home}/.aka/.config")['profile'])
|
734
|
+
# puts "Done. Please restart this shell.".red
|
735
|
+
# end
|
736
|
+
#
|
737
|
+
# # setup_aka_old2 by ryan - check bash file first
|
738
|
+
# def setup_aka_old2
|
739
|
+
# if File.exist?("#{Dir.home}/.zshrc") #if zshec exist
|
740
|
+
# setZSHRC2
|
741
|
+
# append_with_newline("\nexport HISTSIZE=10000","#{Dir.home}/.zshrc")
|
742
|
+
# elsif
|
743
|
+
# File.exist?("#{Dir.home}/.bashrc") #if bashrc exist
|
744
|
+
# setBASHRC2
|
745
|
+
# append_with_newline("\nexport HISTSIZE=10000","#{Dir.home}/.bashrc")
|
746
|
+
# elsif File.exist?("#{Dir.home}/.bash_profile") #if bash_profile exist
|
747
|
+
# setBASH2
|
748
|
+
# append_with_newline("\nexport HISTSIZE=10000","#{Dir.home}/.bash_profile")
|
749
|
+
# else
|
750
|
+
# puts "Currently aka2 just support zshrc, bashrc and bash_profile"
|
751
|
+
# puts "Pleaes contact aka2 creator for more info."
|
752
|
+
# end
|
753
|
+
#
|
754
|
+
# trap = "sigusr2() { unalias $1;}
|
755
|
+
# sigusr1() { source #{readYML("#{Dir.home}/.aka/.config")["dotfile"]}; history -a; echo 'reloaded dot file'; }
|
756
|
+
# trap sigusr1 SIGUSR1
|
757
|
+
# trap 'sigusr2 $(cat ~/sigusr1-args)' SIGUSR2\n".pretty
|
758
|
+
# append(trap, readYML("#{Dir.home}/.aka/.config")['profile'])
|
759
|
+
# puts "Done. Please restart this shell.".red
|
760
|
+
# end
|
725
761
|
|
726
762
|
# setup_aka by ryan - set value in config file
|
727
763
|
def setup_aka
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
764
|
+
userBash = []
|
765
|
+
# 1. check for each type of file without setting anything.
|
766
|
+
if File.exist?("#{Dir.home}/.zshrc") #if zshrc exist
|
767
|
+
userBash.push(".zshrc")
|
768
|
+
end
|
769
|
+
if File.exist?("#{Dir.home}/.bashrc") #if bashrc exist
|
770
|
+
userBash.push(".bashrc")
|
771
|
+
end
|
772
|
+
if File.exist?("#{Dir.home}/.bash_profile") #if bash_profile exist
|
773
|
+
userBash.push(".bash_profile")
|
774
|
+
end
|
775
|
+
|
776
|
+
#2. count the number of types
|
777
|
+
|
778
|
+
#3 if number of types is 1, proceed to set it
|
779
|
+
if userBash.count == 1
|
780
|
+
set_to_dotfile(userBash.first)
|
781
|
+
|
782
|
+
elsif userBash.count > 1
|
783
|
+
#4 if the number of types is more than 1, proceed to ask which one does the users want to uses.
|
784
|
+
userBash.each_with_index do |choice,i|
|
785
|
+
puts "#{i+1}. Setup in #{Dir.home}/#{choice}"
|
786
|
+
end
|
787
|
+
choice = ask "Please choose which location you wish to setup? (Choose a number and enter)\n"
|
788
|
+
|
789
|
+
#5 once you receive input, then you set it according to input
|
790
|
+
case choice
|
791
|
+
when "1"
|
792
|
+
set_to_dotfile(userBash[0]) if userBash[0]
|
793
|
+
when "2"
|
794
|
+
if userBash[1] then set_to_dotfile(userBash[1]) else abort "No file choosen" end
|
795
|
+
when "3"
|
796
|
+
if userBash[2] then set_to_dotfile(userBash[2]) else abort "No file choosen" end
|
797
|
+
else
|
798
|
+
puts "Invalid input, Please enter the number between 1 and #{userBash.count}. Please try again"
|
799
|
+
abort "No file choosen"
|
737
800
|
end
|
801
|
+
end #if userBash > 1
|
802
|
+
|
803
|
+
# if File.exist?("#{Dir.home}/.zshrc") #if zshec exist
|
804
|
+
# setZSHRC2
|
805
|
+
# elsif File.exist?("#{Dir.home}/.bashrc") #if bashrc exist
|
806
|
+
# setBASHRC2
|
807
|
+
# elsif File.exist?("#{Dir.home}/.bash_profile") #if bash_profile exist
|
808
|
+
# setBASH2
|
809
|
+
# else
|
810
|
+
# puts "Aka2 only supports zshrc, bashrc and bash_profile"
|
811
|
+
# puts "Please contact http://github.com/ytbryan for more info."
|
812
|
+
# end
|
813
|
+
end
|
814
|
+
|
815
|
+
def set_to_dotfile(filename)
|
816
|
+
if filename == ".zshrc"
|
817
|
+
setZSHRC2
|
818
|
+
elsif filename == ".bashrc"
|
819
|
+
setBASHRC2
|
820
|
+
elsif filename == ".bash_profile"
|
821
|
+
setBASH2
|
822
|
+
end
|
738
823
|
end
|
739
824
|
|
825
|
+
|
740
826
|
# setup_autosource by ryan - create source file
|
741
827
|
def setup_autosource
|
742
828
|
configDir = "#{Dir.home}/.aka"
|
data/lib/aka/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aka2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Lim
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
12
|
+
date: 2015-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-scp
|