diff options
author | toonn <toonn@toonn.io> | 2021-08-22 13:27:40 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-08-22 13:27:40 +0200 |
commit | c4e732b8045c4be1e001b4de3750524498ceaa44 (patch) | |
tree | 7fa50d0d715a74c644be3d3aba0a5ecc21865c3e | |
parent | 5611e94e3977ed88519833d6f36532bc4156f130 (diff) | |
parent | 1f35e8fa0da5bf29ca92a0eba25d2f8862bbd1a4 (diff) | |
download | ranger-c4e732b8045c4be1e001b4de3750524498ceaa44.tar.gz |
Merge remote-tracking branch 'XuehaiPan/fix-du-macos'
-rw-r--r-- | examples/rc_emacs.conf | 4 | ||||
-rw-r--r-- | ranger/config/rc.conf | 4 |
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/ranger/config/rc.conf b/ranger/config/rc.conf index dc6c7717..e2dfc29f 100644 --- a/ranger/config/rc.conf +++ b/ranger/config/rc.conf @@ -467,8 +467,8 @@ map g? cd /usr/share/doc/ranger # External Programs map E edit -map du shell -p du --max-depth=1 -h --apparent-size -map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh +map du shell -p (du --max-depth=1 --human-readable --apparent-size || du -d 1 -h) 2>/dev/null +map dU shell -p (du --max-depth=1 --human-readable --apparent-size || du -d 1 -h) 2>/dev/null | sort -rh map yp yank path map yd yank dir map yn yank name |