tlittle usability fixes - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit b62df89eea9cb588243eb63a03238ace0edbee77 DIR parent 65b2fe4462ed66a204535f125ca293e93af9aef0 HTML Author: Jaromil <jaromil@dyne.org> Date: Tue, 10 May 2011 09:26:07 +0200 little usability fixes Diffstat: M src/tomb | 7 ++++--- M src/tomb-open | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) --- DIR diff --git a/src/tomb b/src/tomb t@@ -884,8 +884,9 @@ list_tombs() { print -n "$fg[white] open on " print -n "$fg_bold[white]$tombmount" print -n "$fg_no_bold[white] using " - print -n "$fg_bold[white]$tombfs $tombfsopts" - print -n "$fg_no_bold[white] since " + print "$fg_bold[white]$tombfs $tombfsopts" + print -n "$fg_no_bold[green]$tombname" + print -n "$fg_no_bold[white] open since " print "$fg_bold[white]$tombsince$fg_no_bold[white]" # now check hooks t@@ -991,7 +992,7 @@ EOF } main () { - print $@ | grep '\-D' 2>&1 > /dev/null + echo $@ | grep '\-D' 2>&1 > /dev/null # ????? if [ $? = 0 ]; then fi DIR diff --git a/src/tomb-open b/src/tomb-open t@@ -158,7 +158,11 @@ launch_status() { tombname=${1} tombmap=`mount -l | awk "/\[${tombname}\]$/"' { print $1 } '` tombmount=`mount -l | awk "/\[${tombname}\]$/"' { print $3 } '` - tomb-status $tombmap $tombname $tombmount &! + if [ -x ./tomb-status ]; then # launch from build dir + ./tomb-status $tombmap $tombname $tombmount &! + else + tomb-status $tombmap $tombname $tombmount &! + fi } # got an argument