about summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/rc_emacs.conf4
-rw-r--r--examples/shell_automatic_cd.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/rc_emacs.conf b/examples/rc_emacs.conf
index 3b086efd..5105211a 100644
--- a/examples/rc_emacs.conf
+++ b/examples/rc_emacs.conf
@@ -331,8 +331,8 @@ map <C-x>g? cd /usr/share/doc/ranger
 
 # External Programs
 map <C-x><C-f>  edit
-map <C-x>du shell -p du --max-depth=1 -h --apparent-size
-map <C-x>dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
+map <C-x>du shell -p (du --max-depth=1 --human-readable --apparent-size || du -d 1 -h) 2>/dev/null
+map <C-x>dU shell -p (du --max-depth=1 --human-readable --apparent-size || du -d 1 -h) 2>/dev/null | sort -rh
 map <C-x>wp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b
 map <C-x>wd shell -f echo -n %d    | xsel -i; xsel -o | xsel -i -b
 map <C-x>wn shell -f echo -n %f    | xsel -i; xsel -o | xsel -i -b
diff --git a/examples/shell_automatic_cd.sh b/examples/shell_automatic_cd.sh
index 391946c7..6158f74a 100644
--- a/examples/shell_automatic_cd.sh
+++ b/examples/shell_automatic_cd.sh
@@ -19,5 +19,5 @@ ranger_cd() {
     rm -f -- "$temp_file"
 }
 
-# This binds Ctrl-O to ranger-cd:
-bind '"\C-o":"ranger-cd\C-m"'
+# This binds Ctrl-O to ranger_cd:
+bind '"\C-o":"ranger_cd\C-m"'
pan> ^
5c18591
5c18591
065e4e5 ^
793d506 ^

5c18591

c18f3c0 ^
8a28f6e ^


c18f3c0 ^

5c18591



bdde9c7 ^





5c18591




065e4e5 ^

bdde9c7 ^

1dcd417 ^

065e4e5 ^
793d506 ^
5b6b5a6 ^

1dcd417 ^



8a28f6e ^
1dcd417 ^
793d506 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85