diff options
author | Erich Eckner <git@eckner.net> | 2016-12-03 12:50:14 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-12-03 12:50:14 +0100 |
commit | 0a038d8f0d7ce05c0cab6307178bb66c3eac4ea0 (patch) | |
tree | 649a91842626406f51dc3cde01a5db3d15ff2f46 | |
parent | 5beeaf7b734c74655d5663fa614a687b9d2522fd (diff) | |
download | mounted-0a038d8f0d7ce05c0cab6307178bb66c3eac4ea0.tar.xz |
fix color, add usb-abbrev.
-rwxr-xr-x | mounted | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |