From 0a038d8f0d7ce05c0cab6307178bb66c3eac4ea0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 3 Dec 2016 12:50:14 +0100 Subject: fix color, add usb-abbrev. --- mounted | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mounted b/mounted index 3899b79..10f9ebc 100755 --- a/mounted +++ b/mounted @@ -20,11 +20,12 @@ do "/mnt/141.35.51.219_expshhg" ) mpa="jes" ;; "/mnt/141.35.60.68" ) mpa="sim" ;; "/mnt/192.168.0.12" ) mpa="hom" ;; + "/mnt/usb/"* ) mpa="${mp#/mnt/usb/}" ;; * ) mpa="${mp}" ;; esac if [ "${mp}" == "/" ] || df -a | grep -q "^${dev} " then - echo " ${mpa} \$color\${fs_used ${mp}}/\${fs_size ${mp}} \${fs_bar 6 ${mp}}" + echo " \${color}${mpa} \${fs_used ${mp}}/\${fs_size ${mp}} \${fs_bar 6 ${mp}}" else echo " ${dev} -> ${mp}" fi -- cgit v1.2.3-70-g09d2