colorls 1.3.4.pre.673 → 1.3.4.pre.677
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/colorls/flags.rb +8 -2
- data/man/colorls.1 +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea1b4c6c1d8f5bec99b640c0f620b5183df54d38b6a3a7fb057b2404bfc6d77f
|
4
|
+
data.tar.gz: 7c5793217cd53ba9c6addde64e57e8af4b52c756971abb1422864116e1c5b72c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0c9d5a054a517b4c96c116d6af51c8c171d74a127102e791218c7a694c4823274b5c17f41f141023c829b6a7e10c363ac716841004ab1aaa74b864ce3ad99cf
|
7
|
+
data.tar.gz: ea380f9336ae00630a36aefb4e98c54cde6bb5f3bea3bdde34679e220344ee738011e1585bd37496b965925f727ac84af730d6451d946014ace116530614b573
|
data/lib/colorls/flags.rb
CHANGED
@@ -37,8 +37,7 @@ module ColorLS
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def process
|
40
|
-
|
41
|
-
CLocale.setlocale(CLocale::LC_COLLATE, '')
|
40
|
+
init_locale
|
42
41
|
|
43
42
|
@args = [Dir.pwd] if @args.empty?
|
44
43
|
@args.sort!.each_with_index do |path, i|
|
@@ -69,6 +68,13 @@ module ColorLS
|
|
69
68
|
|
70
69
|
private
|
71
70
|
|
71
|
+
def init_locale
|
72
|
+
# initialize locale from environment
|
73
|
+
CLocale.setlocale(CLocale::LC_COLLATE, '')
|
74
|
+
rescue RuntimeError => e
|
75
|
+
warn "WARN: #{e}, check your locale settings"
|
76
|
+
end
|
77
|
+
|
72
78
|
def add_sort_options(options)
|
73
79
|
options.separator ''
|
74
80
|
options.separator 'sorting options:'
|
data/man/colorls.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "COLORLS" "1" "
|
4
|
+
.TH "COLORLS" "1" "April 2020" "colorls 1.3.3" "colorls Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBcolorls\fR \- list directory contents with colors and icons
|