File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,20 @@ function autoloadable {
34
34
}
35
35
36
36
function format-elapsed {
37
+ hours=$(( $1 / 10000000000000 % 24 ))
37
38
mins=$(( $1 / 100000000000 % 60 ))
38
39
secs=$(( $1 / 1000000000 % 60 ))
39
40
hsecs=$(( $1 / 10000000 % 100 ))
40
41
msecs=$(( $1 / 1000000 % 1000 ))
41
42
local elapsed
42
- if [[ $mins > 0 ]]; then
43
- elapsed+=" $mins mins $secs secs"
43
+ if [[ $hours > 0 ]]; then
44
+ elapsed+=" $hours hours, $mins mins and $secs secs"
45
+ elif [[ $mins > 0 ]]; then
46
+ elapsed+=" $mins mins and $secs secs"
44
47
elif [[ $secs > 0 ]]; then
45
48
elapsed+=" $secs .$hsecs secs"
46
49
elif [[ $msecs > 0 ]]; then
47
50
elapsed+=" $msecs ms"
48
- elif [[ $nsecs > 0 ]]; then
49
- elapsed+=" $1 ns"
50
51
else
51
52
elapsed+=" 0"
52
53
fi
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ notify_precmd() {
47
47
if [[ " $alias_notify_cmd " == " " ]]; then
48
48
alias_notify_cmd=` echo $notify_cmd | awk ' {print $1}' `
49
49
fi
50
- if [[ ! " $alias_notify_cmd " == (vi| vim| top| ssh| cmatrix| telnet| tmux| mux| ) ]]; then
50
+ if [[ ! " $alias_notify_cmd " == (vi| vim| top| ssh| cmatrix| telnet| tmux| mux| workon | ) ]]; then
51
51
if [[ $elapsedsecs -gt $max ]]; then
52
52
if [[ $exitstatus == 0 ]]; then
53
53
message=" Completed after $( format-elapsed $elapsed ) "
You can’t perform that action at this time.
0 commit comments