For battery percentages of 08 and 09 percent, the `-le` would fail with an error ("value too great for base"), since the numbers with leading zeros are treated as octal numbers when using double brackets. The solution is to force base 10 for the numbers. More details here: http://stackoverflow.com/a/24777667/1228454
When pygmentize is not installed, the functions less/cat are not defined, the native commands will be used instead. Also removed the error message that was shown when the command was not found. Using `command -v` instead of `which` to check for the existence of the executable - this works better as it does not print an error message if the executable is not found.
The current check of `git symbolic-ref HEAD` does not detect git repositories in the 'detached HEAD' state. This is the state a repository is in if HEAD is not pointing to a valid branch or tag (e.g. you are in a recently-initiated submodule).
…machine plugin, which sets the same variables for docker-machine.
This will allow to open new terminal tabs in the same directory as the current terminal. Uses the fact that plugins are loaded after the selected theme. Themes often manipulate the $PROMPT_COMMAND variable. Implementation inspired by the pathmunge function.