rtfm-filemanager 3.17.1 → 3.20
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/bin/rtfm +36 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f22769d80371a16fd03a6810a49d37cc0fab97250be947e983ce4f617dccf8f
|
4
|
+
data.tar.gz: 3a08da56b08a2e34b5f9b0fb6d629b0808b2e8c5ec8175ba770a609a452bec4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 555070d815f6dd2c62f1c41e18dadb5a624bdf82dfa124d03cf51b2c275302c92c14ebe4931ddf101b2d5b4cd21cb5a28f68e08cabf97c57634e9dcb10ac8473
|
7
|
+
data.tar.gz: 33256ae65fc9b2437dda6fc503c490976ebc3d6744aea3c1cdf4977c2067e9d8d8d3c4228572eb958357f5463d0a18d283068f58c9f6d5264e4fedfa4d7feb92
|
data/bin/rtfm
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
17
|
-
@version = "3.
|
17
|
+
@version = "3.20"
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -143,9 +143,38 @@ def firstrun
|
|
143
143
|
|
144
144
|
FIRSTRUN
|
145
145
|
|
146
|
-
|
147
|
-
|
148
|
-
|
146
|
+
@shell = File.basename(`echo "$SHELL"`.chomp)
|
147
|
+
if @shell == "fish"
|
148
|
+
if not File.exist?(Dir.home+'/.config/fish/config.fish')
|
149
|
+
@rtfmlaunch = <<RTFMFISHLAUNCH
|
150
|
+
# This is the RTFM launcher (https://github.com/isene/RTFM) for fish
|
151
|
+
function r {
|
152
|
+
f=$(mktemp)
|
153
|
+
(
|
154
|
+
set +e
|
155
|
+
rtfm "$f"
|
156
|
+
code=$?
|
157
|
+
if [ "$code" != 0 ]; then
|
158
|
+
rm -f "$f"
|
159
|
+
exit "$code"
|
160
|
+
fi
|
161
|
+
)
|
162
|
+
code=$?
|
163
|
+
if [ "$code" != 0 ]; then
|
164
|
+
return "$code"
|
165
|
+
fi
|
166
|
+
d=$(<"$f")
|
167
|
+
rm -f "$f"
|
168
|
+
cd "$d"
|
169
|
+
}
|
170
|
+
RTFMFISHLAUNCH
|
171
|
+
File.write(Dir.home+'/.config/fish/config.fish', @rtfmlaunch)
|
172
|
+
`echo "source ~/.config/fish/config.fish" >> .#{@shell}rc`
|
173
|
+
end
|
174
|
+
else
|
175
|
+
if not File.exist?(Dir.home+'/.rtfm.launch')
|
176
|
+
@rtfmlaunch = <<RTFMLAUNCH
|
177
|
+
# This is the RTFM launcher (https://github.com/isene/RTFM) for bash/zsh
|
149
178
|
function r {
|
150
179
|
f=$(mktemp)
|
151
180
|
(
|
@@ -166,9 +195,9 @@ function r {
|
|
166
195
|
cd "$d"
|
167
196
|
}
|
168
197
|
RTFMLAUNCH
|
169
|
-
|
170
|
-
|
171
|
-
|
198
|
+
File.write(Dir.home+'/.rtfm.launch', @rtfmlaunch)
|
199
|
+
`echo "source ~/.rtfm.launch" >> .#{@shell}rc`
|
200
|
+
end
|
172
201
|
end
|
173
202
|
|
174
203
|
puts @firstrun
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: '3.20'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -48,7 +48,7 @@ description: 'A full featured terminal browser with syntax highlighted files, im
|
|
48
48
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
49
49
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
50
50
|
other features. New in 3.14: Better error handling. 3.14.1: Fixed bug in launching
|
51
|
-
rtfm without the launcher ''r''. 3.
|
51
|
+
rtfm without the launcher ''r''. 3.20: Added launcher for the fish shell.'
|
52
52
|
email: g@isene.com
|
53
53
|
executables:
|
54
54
|
- rtfm
|