less annoying awesome theme + compatibility stuff for old bash versions
This commit is contained in:
parent
e41b04ef2c
commit
913bfd4545
2 changed files with 6 additions and 6 deletions
2
rc.lua
2
rc.lua
|
@ -69,7 +69,7 @@ end
|
||||||
-- }}}
|
-- }}}
|
||||||
-- {{{ Variable definitions
|
-- {{{ Variable definitions
|
||||||
-- Themes define colours, icons, and wallpapers
|
-- Themes define colours, icons, and wallpapers
|
||||||
beautiful.init('/usr/share/awesome/themes/default/theme.lua')
|
beautiful.init('/usr/share/awesome/themes/zenburn/theme.lua')
|
||||||
theme.border_width = 1
|
theme.border_width = 1
|
||||||
theme.font = 'Terminus 9'
|
theme.font = 'Terminus 9'
|
||||||
theme.taglist_squares_sel = nil
|
theme.taglist_squares_sel = nil
|
||||||
|
|
10
shellrc
10
shellrc
|
@ -167,11 +167,11 @@ if is_zsh; then
|
||||||
precmd() {
|
precmd() {
|
||||||
[[ -n ${vcs_enabled} ]] && vcs_info
|
[[ -n ${vcs_enabled} ]] && vcs_info
|
||||||
if [[ -z ${hide_info} ]]; then
|
if [[ -z ${hide_info} ]]; then
|
||||||
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${rb}${vcs_info_msg_0_}${newline}"
|
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${rb}${vcs_info_msg_0_}"
|
||||||
else
|
else
|
||||||
prompt_info=''
|
prompt_info=''
|
||||||
fi
|
fi
|
||||||
PROMPT="${prompt_info}${prompt_bang} "
|
PROMPT="${prompt_info}${newline}${prompt_bang} "
|
||||||
}
|
}
|
||||||
PROMPT2='%b%f%_%B%F{green}>%f%b '
|
PROMPT2='%b%f%_%B%F{green}>%f%b '
|
||||||
PROMPT3='%b%f?%B%F{green}#%f%b '
|
PROMPT3='%b%f?%B%F{green}#%f%b '
|
||||||
|
@ -280,7 +280,7 @@ else
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ prompt
|
# {{{ prompt
|
||||||
colors=('black' 'red' 'green' 'yellow' 'blue' 'magenta' 'cyan' 'white')
|
colors=('black' 'red' 'green' 'yellow' 'blue' 'magenta' 'cyan' 'white')
|
||||||
for i in {0..7}; do
|
for i in 0 1 2 3 4 5 6 7; do
|
||||||
eval "n${colors[$i]}='\[\e[0;3${i}m\]'"
|
eval "n${colors[$i]}='\[\e[0;3${i}m\]'"
|
||||||
eval "b${colors[$i]}='\[\e[1;3${i}m\]'"
|
eval "b${colors[$i]}='\[\e[1;3${i}m\]'"
|
||||||
done
|
done
|
||||||
|
@ -298,7 +298,7 @@ else
|
||||||
else
|
else
|
||||||
prompt_user="${bred}\u${byellow}@${reset}"
|
prompt_user="${bred}\u${byellow}@${reset}"
|
||||||
fi
|
fi
|
||||||
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${rb}${lb}bash-\v${rb}${newline}"
|
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${rb}${lb}bash-\v${rb}"
|
||||||
else
|
else
|
||||||
prompt_info=''
|
prompt_info=''
|
||||||
fi
|
fi
|
||||||
|
@ -307,7 +307,7 @@ else
|
||||||
else
|
else
|
||||||
prompt_bang_color="${bgreen}"
|
prompt_bang_color="${bgreen}"
|
||||||
fi
|
fi
|
||||||
PS1="${prompt_info}${prompt_bang_color}${prompt_bang} "
|
PS1="${prompt_info}${newline}${prompt_bang_color}${prompt_bang} "
|
||||||
}
|
}
|
||||||
PROMPT_COMMAND='precmd'
|
PROMPT_COMMAND='precmd'
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue