dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f80881b15c50e095a48c0439d27fb45ae964a2ee
parent c9e92a2ccd4e07bd93f80bffa369fe645d7af89a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  4 Apr 2018 20:49:47 -0400

Add visual highlight if eject fails

Diffstat:
Mlinks/bin/ejectall | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/links/bin/ejectall b/links/bin/ejectall @@ -2,7 +2,8 @@ for f in "/Volumes/"*; do if [ "$f" != "/Volumes/Macintosh HD" ]; then if [ "$f" != "/Volumes/MobileBackups" ]; then - diskutil eject $f; + diskutil eject $f | \ + sed "s/Volume failed to eject/$(tput setaf 1)Volume failed to eject$(tput sgr0)/" fi fi done