From 4efefc519b6ee3eeee2a6cdbf8b55cfec82b47ff Mon Sep 17 00:00:00 2001 From: Armin Date: Mon, 30 Mar 2015 06:09:38 +0200 Subject: [PATCH] changes, changes... --- lib/powerline/pad | 8 ++++++++ zshrc | 21 ++++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 lib/powerline/pad diff --git a/lib/powerline/pad b/lib/powerline/pad new file mode 100644 index 000000000..30c9b4a20 --- /dev/null +++ b/lib/powerline/pad @@ -0,0 +1,8 @@ +colours=(250 60 152 32) + +prompt_context_user_fg="${colours[1]}" +prompt_context_user_bg="${colours[2]}" + +prompt_context_root_fg="${colours[3]}" +prompt_context_root_bg="${colours[4]}" + diff --git a/zshrc b/zshrc index ae71caf45..8b1143356 100644 --- a/zshrc +++ b/zshrc @@ -8,6 +8,10 @@ ZSH="$HOME/.zsh" # export ZSH_THEME="powerline" # name of zsh theme export ZSH_THEME="powerline-with-hostname" # name of zsh theme +if [[ "$TERM" == "linux" ]]; then + export ZSH_THEME=ezzsh +fi + # Set this to true to use case-sensitive completion CASE_SENSITIVE="false" # bool @@ -185,10 +189,16 @@ alias grep='grep --color=auto' # enable ls colorization: if [ "$TERM" != "dumb" ]; then - if [[ "$dircolors_enable" == 1 ]]; then - eval "$(dircolors "$ZSH"/dircolors)" - alias ls="$LS_COMMAND $LS_OPTIONS" - fi + #if [[ "$dircolors_enable" == 1 ]]; then + # eval "$(dircolors "$ZSH"/dircolors)" + # alias ls="$LS_COMMAND $LS_OPTIONS" + #fi + alias ls="$LS_COMMAND $LS_OPTIONS" +fi + +# Fix for KDEs stupid Konsole program +if [[ $KONSOLE_PROFILE_NAME ]]; then + export TERM=xterm-256color fi # do not autocorrect sudo commands (fixes "zsh: correct 'vim' to '.vim' [nyae]?") @@ -203,6 +213,7 @@ alias less='less -R' alias diff='colordiff' -set modeline +alias s="sudo -s -E" +