mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
new colorizations
This commit is contained in:
parent
1368ad5d93
commit
8db7f85fc1
3 changed files with 56 additions and 3 deletions
20
dircolors
20
dircolors
|
|
@ -254,6 +254,19 @@ EXEC 01;32
|
||||||
################# DOCUMENT FORMATS
|
################# DOCUMENT FORMATS
|
||||||
.pdf 00;38;5;78
|
.pdf 00;38;5;78
|
||||||
.txt 00;38;5;86
|
.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 01;38;5;76
|
||||||
*EADME.txt 01;38;5;76
|
*EADME.txt 01;38;5;76
|
||||||
*eadme 01;38;5;76
|
*eadme 01;38;5;76
|
||||||
|
|
@ -265,13 +278,20 @@ EXEC 01;32
|
||||||
.bash_aliases 00;38;5;72
|
.bash_aliases 00;38;5;72
|
||||||
.bash_functions 00;38;5;72
|
.bash_functions 00;38;5;72
|
||||||
.bashrc 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_profile 00;38;5;72
|
||||||
.bash_prompt 00;38;5;72
|
.bash_prompt 00;38;5;72
|
||||||
.bash_history 00;38;5;79
|
.bash_history 00;38;5;79
|
||||||
.profile 00;38;5;72
|
.profile 00;38;5;72
|
||||||
.conf 00;38;5;72
|
.conf 00;38;5;72
|
||||||
.config 00;38;5;72
|
.config 00;38;5;72
|
||||||
|
*config 00;38;5;72
|
||||||
.gitconfig 00;38;5;72
|
.gitconfig 00;38;5;72
|
||||||
|
.git 00;38;5;72
|
||||||
.cfg 00;38;5;72
|
.cfg 00;38;5;72
|
||||||
.ini 00;38;5;72
|
.ini 00;38;5;72
|
||||||
.cache 00;38;5;72
|
.cache 00;38;5;72
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ prompt_rsegment() {
|
||||||
else
|
else
|
||||||
echo -n "%{$bg%}%{$fg%} "
|
echo -n "%{$bg%}%{$fg%} "
|
||||||
fi
|
fi
|
||||||
CURRENT_BG=$1
|
CURRENT_BG=$2
|
||||||
[[ -n $3 ]] && echo -n $3
|
[[ -n $3 ]] && echo -n $3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -193,8 +193,8 @@ build_rprompt() {
|
||||||
symbols=()
|
symbols=()
|
||||||
drawrightprompt=0
|
drawrightprompt=0
|
||||||
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙" && drawrightprompt=1
|
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙" && drawrightprompt=1
|
||||||
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡" && drawrightprompt=1
|
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}☠" && drawrightprompt=1
|
||||||
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘ $RETVAL" && drawrightprompt=1
|
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}⧰ $RETVAL" && drawrightprompt=1
|
||||||
if [[ "$drawrightprompt" -eq 1 ]]; then
|
if [[ "$drawrightprompt" -eq 1 ]]; then
|
||||||
prompt_rseperator %k 238
|
prompt_rseperator %k 238
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
33
zshrc
33
zshrc
|
|
@ -1,5 +1,10 @@
|
||||||
# ezzsh - zshrc
|
# ezzsh - zshrc
|
||||||
|
|
||||||
|
|
||||||
|
module_path=($module_path /usr/local/lib/zpython)
|
||||||
|
zmodload zsh/zpython
|
||||||
|
|
||||||
|
|
||||||
# path to your zsh configuration.
|
# path to your zsh configuration.
|
||||||
ZSH="$HOME/.zsh"
|
ZSH="$HOME/.zsh"
|
||||||
|
|
||||||
|
|
@ -229,3 +234,31 @@ function compile () {
|
||||||
for file in "$@"; do gcc -o "${file%.}" "$file"; done
|
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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue