summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-12-03 12:50:14 +0100
committerErich Eckner <git@eckner.net>2016-12-03 12:50:14 +0100
commit0a038d8f0d7ce05c0cab6307178bb66c3eac4ea0 (patch)
tree649a91842626406f51dc3cde01a5db3d15ff2f46
parent5beeaf7b734c74655d5663fa614a687b9d2522fd (diff)
downloadmounted-0a038d8f0d7ce05c0cab6307178bb66c3eac4ea0.tar.xz
fix color, add usb-abbrev.
-rwxr-xr-xmounted3
1 files changed, 2 insertions, 1 deletions
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