From 913bfd45456c9dd15bb6e975931a826bf12aa648 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 17 Nov 2014 01:39:02 +0300 Subject: [PATCH] less annoying awesome theme + compatibility stuff for old bash versions --- rc.lua | 2 +- shellrc | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rc.lua b/rc.lua index aabbddc..5fe3410 100644 --- a/rc.lua +++ b/rc.lua @@ -69,7 +69,7 @@ end -- }}} -- {{{ Variable definitions -- 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.font = 'Terminus 9' theme.taglist_squares_sel = nil diff --git a/shellrc b/shellrc index 6569e0f..f68a19a 100644 --- a/shellrc +++ b/shellrc @@ -167,11 +167,11 @@ if is_zsh; then precmd() { [[ -n ${vcs_enabled} ]] && vcs_info 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 prompt_info='' fi - PROMPT="${prompt_info}${prompt_bang} " + PROMPT="${prompt_info}${newline}${prompt_bang} " } PROMPT2='%b%f%_%B%F{green}>%f%b ' PROMPT3='%b%f?%B%F{green}#%f%b ' @@ -280,7 +280,7 @@ else # }}} # {{{ prompt 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 "b${colors[$i]}='\[\e[1;3${i}m\]'" done @@ -298,7 +298,7 @@ else else prompt_user="${bred}\u${byellow}@${reset}" 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 prompt_info='' fi @@ -307,7 +307,7 @@ else else prompt_bang_color="${bgreen}" fi - PS1="${prompt_info}${prompt_bang_color}${prompt_bang} " + PS1="${prompt_info}${newline}${prompt_bang_color}${prompt_bang} " } PROMPT_COMMAND='precmd' # }}}