1
0
Fork 0

Removed usless functions, made battery meter only display if the script exists

pull/8/head
Samuel Clements 13 years ago
parent e70db9040b
commit 25b11a5fba

@ -11,14 +11,12 @@ function collapse_pwd {
}
# Get the current battery charge
# Requires a script that returns a battery meter
function battery_charge {
echo `~/bin/charge.py` 2>/dev/null
}
# Echo a diffrent character if the current dir is a git repository
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
echo '○'
CHARGE_SCRIPT="~/bin/charge.py"
if [[ -a $CHARGE_SCRIPT ]]; then
echo `$(CHARGE_SCRIPT)` 2>/dev/null
fi
}
function prompt_twain_setup() {

Loading…
Cancel
Save