Removed usless functions, made battery meter only display if the script exists
This commit is contained in:
parent
e70db9040b
commit
25b11a5fba
1 changed files with 5 additions and 7 deletions
|
@ -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…
Add table
Reference in a new issue