Merge pull request #21 from ldidry/master

Two more bugfixes
This commit is contained in:
nojhan 2012-08-12 01:59:33 -07:00
commit 2bc1304de0

View File

@ -408,7 +408,11 @@ __shorten_path()
echo "$p"
fi
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
if [[ "$len" -gt "$max_len" ]]; then
echo "%-${keep}~%${max_len}<${mask}<%~%<<"
else
echo "%~"
fi
fi
}
@ -659,6 +663,7 @@ __battery_color()
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
echo -ne "${ret}${bat}%%${NO_COL}"
fi
fi
}