diff options
author | XuehaiPan <XuehaiPan@pku.edu.cn> | 2021-08-19 20:37:25 +0800 |
---|---|---|
committer | XuehaiPan <XuehaiPan@pku.edu.cn> | 2021-08-19 20:37:25 +0800 |
commit | 01d83e95defb5532f98ba325170a4d1c92fede80 (patch) | |
tree | 74e9e6e38f3c803b5b102d7a84745377cb468fd0 | |
parent | 209b8a81d77a001f4a4cca2ce9ff1d5bd51ebc2a (diff) | |
download | ranger-01d83e95defb5532f98ba325170a4d1c92fede80.tar.gz |
Fix command `du` on 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..00acba3e 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 -d 1 -h +map <C-x>dU shell -p du -d 1 -h | 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..27652563 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 -d 1 -h +map dU shell -p du -d 1 -h | sort -rh map yp yank path map yd yank dir map yn yank name |