rtfm-filemanager 3.14.15926 → 3.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rtfm +10 -9
- 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: efcf22923523fe457ef603a113f3071c432663510da08e845ac46a8986adf949
|
4
|
+
data.tar.gz: 4c2f1620e6f2accf17c94a8de7eeb88f3f7ba035630d2010bc3508cbdcc093d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8694bb1ae670e5b3cbe7e3d650c1900f0029cd838fad9c543699ba9e4325ad29e73758536de1639241dc247fc91382ea0f3b634b6f06d6ca20aaaeaa99992692
|
7
|
+
data.tar.gz: 0d00b355a773b567ca01c8bd5f21c3791cf96eea7e3e980281cbd2434af2e104b6d89602eda34c5394e7a8657d67cd7ddc9110b7640ea2fde08cbdf5ff44f9bd
|
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.16"
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -872,7 +872,7 @@ def main_getkey # GET KEY FROM USER
|
|
872
872
|
sysinfo
|
873
873
|
when 'C-D' # Create new directory (shortcut for ":mkdir ")
|
874
874
|
cmd = w_b_getstr(": ", "mkdir ")
|
875
|
-
w_b_exec(cmd)
|
875
|
+
w_b_exec(cmd + " -p")
|
876
876
|
when 'C-N' # navi integration (https://github.com/denisidoro/navi)
|
877
877
|
begin
|
878
878
|
@navi = `navi`
|
@@ -1403,8 +1403,8 @@ def sysinfo
|
|
1403
1403
|
cpu = "CPUs = " + `nproc`.chop + " "
|
1404
1404
|
cpuinfo = `lscpu`
|
1405
1405
|
cpu += cpuinfo[/^.*Model name:\s*(.*)/, 1] + " "
|
1406
|
-
cpu += "Max: " + cpuinfo[/^.*CPU max MHz:\s*(.*)/, 1]
|
1407
|
-
cpu += "Min: " + cpuinfo[/^.*CPU min MHz:\s*(.*)/, 1]
|
1406
|
+
cpu += "Max: " + cpuinfo[/^.*CPU max MHz:\s*(.*)/, 1].to_i.to_s + "MHz "
|
1407
|
+
cpu += "Min: " + cpuinfo[/^.*CPU min MHz:\s*(.*)/, 1].to_i.to_s + "MHz\n\n"
|
1408
1408
|
text += [[154, 0, cpu]]
|
1409
1409
|
mem = `free -h` + "\n"
|
1410
1410
|
text += [[229, 0, mem]]
|
@@ -1413,7 +1413,8 @@ def sysinfo
|
|
1413
1413
|
disk = `df -H | head -8`
|
1414
1414
|
text += [[172, 0, disk]]
|
1415
1415
|
dmesg = "\nDMESG (latest first):\n"
|
1416
|
-
|
1416
|
+
dcmd = `dmesg 2>/dev/null | tail -6`.split("\n").sort.reverse.join("\n")
|
1417
|
+
dcmd != "" ? dmesg += dcmd : dmesg += "dmesg requires root, run 'sudo sysctl kernel.dmesg_restrict=0' if you need permission\n"
|
1417
1418
|
text += [[219, 0, dmesg]]
|
1418
1419
|
w_r_info(ansifix(text))
|
1419
1420
|
rescue
|
@@ -1594,11 +1595,11 @@ def w_b_exec(cmd) # EXECUTE COMMAND FROM @W_B
|
|
1594
1595
|
status = Timeout::timeout(15) {
|
1595
1596
|
@w_r.clr
|
1596
1597
|
begin
|
1597
|
-
@w_r.pager_cmd = "#{cmd} | #{@bat} -n --color=always
|
1598
|
-
@w_r.text =
|
1598
|
+
@w_r.pager_cmd = "#{cmd} 2>&1 | #{@bat} -n --color=always"
|
1599
|
+
@w_r.text = %x(#{@w_r.pager_cmd})
|
1599
1600
|
rescue
|
1600
|
-
@w_r.pager_cmd = "#{cmd} 2
|
1601
|
-
@w_r.text =
|
1601
|
+
@w_r.pager_cmd = "#{cmd} 2>&1"
|
1602
|
+
@w_r.text = %x(#{@w_r.pager_cmd})
|
1602
1603
|
end
|
1603
1604
|
unless @w_r.text == "" or @w_r.text == nil
|
1604
1605
|
pager_start
|
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.16'
|
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-07-
|
11
|
+
date: 2024-07-25 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.16: Better error handling for commands'
|
52
52
|
email: g@isene.com
|
53
53
|
executables:
|
54
54
|
- rtfm
|