From 1f35e8fa0da5bf29ca92a0eba25d2f8862bbd1a4 Mon Sep 17 00:00:00 2001 From: XuehaiPan Date: Sun, 22 Aug 2021 14:11:13 +0800 Subject: Use || operator for commands --- examples/rc_emacs.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/rc_emacs.conf b/examples/rc_emacs.conf index 00acba3e..5105211a 100644 --- a/examples/rc_emacs.conf +++ b/examples/rc_emacs.conf @@ -331,8 +331,8 @@ map g? cd /usr/share/doc/ranger # External Programs map edit -map du shell -p du -d 1 -h -map dU shell -p du -d 1 -h | 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 wp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b map wd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b map wn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b -- cgit 1.4.1-2-gfad0