* Fixed lsmod calling on systems different from Linux.

* fbterm check now runs only on Linux and if lsmod is available.
* Added OS and OS_RELEASE vars.
* Themes now should also ends with .zsh.
This commit is contained in:
2015-03-01 09:57:58 +05:00
parent cfa309ed3a
commit da3e638cf9
6 changed files with 22 additions and 43 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ autoload -Uz promptinit
promptinit
if [ "${PROMPT_THEME}" != "" ]; then
if [ -f ${CONFIG_PATH}/zsh/prompts/${PROMPT_THEME}.zsh-theme ]; then
source ${CONFIG_PATH}/zsh/prompts/${PROMPT_THEME}.zsh-theme
if [ -f ${CONFIG_PATH}/zsh/prompts/${PROMPT_THEME}.zsh ]; then
source ${CONFIG_PATH}/zsh/prompts/${PROMPT_THEME}.zsh
else
echo "Theme \"${PROMPT_THEME}\" could not be loaded. File does not exist or unreadable."
fi