summaryrefslogtreecommitdiff
path: root/themes/adben.zsh-theme
diff options
context:
space:
mode:
authorAshley Valent <avalent@atlassian.com>2015-02-11 11:22:15 +1100
committerAshley Valent <avalent@atlassian.com>2015-02-11 11:22:15 +1100
commit3b6a695b60d81691ab8e31197fc8e0444df0e394 (patch)
tree84529e1bc0a54cdd9471e53c597e913797c04014 /themes/adben.zsh-theme
parent3ba10ad0a2ed85c26e096126a7899a401cf8f9e7 (diff)
parentef7e53a78d0e4196c2d1e6e5b268209759d51753 (diff)
downloadzsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.tar.gz
zsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.tar.bz2
zsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.zip
Merge branch 'master' of github.com:avalent/oh-my-zsh
Diffstat (limited to 'themes/adben.zsh-theme')
-rw-r--r--themes/adben.zsh-theme15
1 files changed, 6 insertions, 9 deletions
diff --git a/themes/adben.zsh-theme b/themes/adben.zsh-theme
index 6869c8a20..212b823a5 100644
--- a/themes/adben.zsh-theme
+++ b/themes/adben.zsh-theme
@@ -69,17 +69,17 @@ function precmd {
#Choose from all databases, regardless of whether they are considered "offensive"
fortune -a
}
- #obtains the tip
+ #obtains the tip
ps1_command_tip () {
wget -qO - http://www.commandlinefu.com/commands/random/plaintext | sed 1d | sed '/^$/d'
- }
+ }
prompt_header () {
if [[ "true" == "$ENABLE_COMMAND_TIP" ]]; then
ps1_command_tip
else
ps1_fortune
- fi
- }
+ fi
+ }
PROMPT_HEAD="${RED_START}${PR_YELLOW}$(prompt_header)${PR_RESET}"
# set a simple variable to show when in screen
if [[ -n "${WINDOW}" ]]; then
@@ -99,11 +99,8 @@ prompt_context () {
set_prompt () {
# required for the prompt
setopt prompt_subst
- autoload colors zsh/terminfo
- if [[ "$terminfo[colors]" -gt 8 ]]; then
- colors
- fi
-
+ autoload zsh/terminfo
+
# ######### PROMPT #########
PROMPT='${PROMPT_HEAD}
${RED_START}$(prompt_context)