diff --git a/dircolors b/dircolors index af9677676..dfad4ad27 100644 --- a/dircolors +++ b/dircolors @@ -254,6 +254,19 @@ EXEC 01;32 ################# DOCUMENT FORMATS .pdf 00;38;5;78 .txt 00;38;5;86 +*notizblock.txt 01;38;5;160 +*todo.txt 01;38;5;160 +*.asc 00;38;5;100 +*.gpg 00;38;5;100 +*.truecrypt 00;38;5;100 +.html 00;38;5;86 +.xml 00;38;5;86 +.yaml 00;38;5;86 +.json 00;38;5;86 +.odt 00;38;5;86 +.md 00;38;5;86 +.mdn 00;38;5;86 +.mdwn 00;38;5;86 *EADME 01;38;5;76 *EADME.txt 01;38;5;76 *eadme 01;38;5;76 @@ -265,13 +278,20 @@ EXEC 01;32 .bash_aliases 00;38;5;72 .bash_functions 00;38;5;72 .bashrc 00;38;5;72 +.zshrc 00;38;5;59 +*zshrc 00;38;5;59 +*dircolors 00;38;5;59 +*otizblock*.txt 00;38;5;160 +*otizblock 00;38;5;160 .bash_profile 00;38;5;72 .bash_prompt 00;38;5;72 .bash_history 00;38;5;79 .profile 00;38;5;72 .conf 00;38;5;72 .config 00;38;5;72 +*config 00;38;5;72 .gitconfig 00;38;5;72 +.git 00;38;5;72 .cfg 00;38;5;72 .ini 00;38;5;72 .cache 00;38;5;72 diff --git a/themes/powerline-with-hostname.zsh-theme b/themes/powerline-with-hostname.zsh-theme index fbcce1c66..5abe824f0 100644 --- a/themes/powerline-with-hostname.zsh-theme +++ b/themes/powerline-with-hostname.zsh-theme @@ -48,7 +48,7 @@ prompt_rsegment() { else echo -n "%{$bg%}%{$fg%} " fi - CURRENT_BG=$1 + CURRENT_BG=$2 [[ -n $3 ]] && echo -n $3 } @@ -193,8 +193,8 @@ build_rprompt() { symbols=() drawrightprompt=0 [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙" && drawrightprompt=1 - [[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡" && drawrightprompt=1 - [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘ $RETVAL" && drawrightprompt=1 + [[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}☠" && drawrightprompt=1 + [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}⧰ $RETVAL" && drawrightprompt=1 if [[ "$drawrightprompt" -eq 1 ]]; then prompt_rseperator %k 238 fi diff --git a/zshrc b/zshrc index 14ef66bad..e346a4d0c 100644 --- a/zshrc +++ b/zshrc @@ -1,5 +1,10 @@ # ezzsh - zshrc + +module_path=($module_path /usr/local/lib/zpython) +zmodload zsh/zpython + + # path to your zsh configuration. ZSH="$HOME/.zsh" @@ -229,3 +234,31 @@ function compile () { for file in "$@"; do gcc -o "${file%.}" "$file"; done } + + + + + +autoload -U colors zsh-mime-setup select-word-style + +colors + +zsh-mime-setup + +select-word-style bash +autoload -U colors zsh-mime-setup select-word-style + +setopt PROMPT_SUBST +color="blue" +if [ "$USER" = "root" ]; then + color="red" +fi; + + + + + + + + +