mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Add clear simple theme
This commit is contained in:
parent
eafd5f3252
commit
0eb31eefc1
1 changed files with 38 additions and 0 deletions
38
themes/petrgrishin.zsh-theme
Normal file
38
themes/petrgrishin.zsh-theme
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# # #
|
||||||
|
# @author Petr Grishin <petr.grishin@grishini.ru>
|
||||||
|
# Sample: petrgrishin ~/git/project [rc!] % 9:18
|
||||||
|
# # #
|
||||||
|
if [[ $EUID == 0 ]]
|
||||||
|
then
|
||||||
|
PROMPT=$'%{\e[1;31m%}%n %{\e[1;34m%}%~$(git_prompt_info) #%{\e[0m%} ' # user dir %
|
||||||
|
else
|
||||||
|
PROMPT=$'%{\e[1;32m%}%n %{\e[1;34m%}%~$(git_prompt_info) %#%{\e[0m%} ' # root dir #
|
||||||
|
fi
|
||||||
|
RPROMPT=$'%{\e[1;34m%}%T%{\e[0m%}' # right prompt with time
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX=" ["
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="]"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="!"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
|
|
||||||
|
alias ls='ls -G'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
|
||||||
|
# The variables are wrapped in \%\{\%\}. This should be the case for every
|
||||||
|
# variable that does not contain space.
|
||||||
|
for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do
|
||||||
|
eval PR_$COLOR='%{$fg_no_bold[${(L)COLOR}]%}'
|
||||||
|
eval PR_BOLD_$COLOR='%{$fg_bold[${(L)COLOR}]%}'
|
||||||
|
done
|
||||||
|
|
||||||
|
eval RESET='$reset_color'
|
||||||
|
export PR_RED PR_GREEN PR_YELLOW PR_BLUE PR_WHITE PR_BLACK
|
||||||
|
export PR_BOLD_RED PR_BOLD_GREEN PR_BOLD_YELLOW PR_BOLD_BLUE
|
||||||
|
export PR_BOLD_WHITE PR_BOLD_BLACK
|
||||||
|
|
||||||
|
# Clear LSCOLORS
|
||||||
|
unset LSCOLORS
|
||||||
|
|
||||||
|
# Main change, you can see directories on a dark background
|
||||||
|
export CLICOLOR=1
|
||||||
|
export LS_COLORS=exfxcxdxbxegedabagacad
|
||||||
Loading…
Add table
Add a link
Reference in a new issue