splashrc 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/splashrc +1 -0
- data/bin/splashrc-disable +5 -3
- data/bin/splashrc-enable +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e2a17b96cd6465428d5f8db471f18ac8f1dbe52
|
4
|
+
data.tar.gz: 28f05604f09370afe4d9625ea8f79213aa5e9cb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e1fdc819e57253a5ddfd5782964ff5bf1c77121f1d09b10d1bdb14f068784ece2fb70e5e74fbb2c15b9077aeaa02d89e9df317de216ff771e8f34898285541c
|
7
|
+
data.tar.gz: 2e2a871b7948f914f0ab9fa28e07d458a8f711a8c9ada9b0960d73202f1541272cab0cb7daa39d1db04c0dc662e78fe28ff0c953539027f591a1e43f86de4516
|
data/bin/splashrc
CHANGED
@@ -90,6 +90,7 @@ add = [
|
|
90
90
|
|
91
91
|
res_determined||add.delete_at(add.index(add.select{|i|i.match(/^Resolution:/)}[0]))
|
92
92
|
|
93
|
+
puts `clear`
|
93
94
|
$rc.each_with_index{ |i,ind| $rc[ind] = colors[ind].gsub("%s",$rc[ind]).gsub("|"," ").concat("\e[1;36m").concat(add[ind]).concat("\e[39m").gsub("*w*","\e[37m").gsub("*c*","\e[1;36m").gsub("*r*","\e[0;31m") }
|
94
95
|
at_exit{puts "\e[0;39m"}
|
95
96
|
|
data/bin/splashrc-disable
CHANGED
@@ -14,8 +14,10 @@ c = gets.chomp
|
|
14
14
|
|
15
15
|
if ["y",""].include? c.downcase
|
16
16
|
x = File.read(loc).split("\n")
|
17
|
-
x.
|
18
|
-
|
19
|
-
|
17
|
+
unless x.select{|i|i.match(/^splashrc/)}.length==0
|
18
|
+
x.delete_at(x.index(x.select{|i|i.match(/^splashrc/)}[0]))
|
19
|
+
x = x.join("\n")
|
20
|
+
File.write(loc,x)
|
21
|
+
end
|
20
22
|
puts "Success!"
|
21
23
|
end
|
data/bin/splashrc-enable
CHANGED
@@ -14,8 +14,10 @@ c = gets.chomp
|
|
14
14
|
|
15
15
|
if ["y",""].include? c.downcase
|
16
16
|
x = File.read(loc).split("\n")
|
17
|
-
x
|
18
|
-
|
19
|
-
|
17
|
+
if x.select{|i|i.match(/^splashrc/)}.length==0
|
18
|
+
x << %Q(splashrc # THIS ALWAYS HAS TO BE THE LAST LINE)
|
19
|
+
x = x.join("\n")
|
20
|
+
File.write(loc,x)
|
21
|
+
end
|
20
22
|
puts "Success!"
|
21
23
|
end
|