Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
e25329fc
Commit
e25329fc
authored
Dec 02, 2013
by
Robby Russell
Browse files
Merge pull request #2222 from jamesoff/fix-battery-plugin
Prevent errors in prompts if no battery info available.
parents
fb614a0e
8cfc7d66
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/battery/battery.plugin.zsh
View file @
e25329fc
...
@@ -79,4 +79,14 @@ elif [[ $(uname) == "Linux" ]] ; then
...
@@ -79,4 +79,14 @@ elif [[ $(uname) == "Linux" ]] ; then
echo
"∞"
echo
"∞"
fi
fi
}
}
else
# Empty functions so we don't cause errors in prompts
function
battery_pct_remaining
()
{
}
function
battery_time_remaining
()
{
}
function
battery_pct_prompt
()
{
}
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment