mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 21:24:34 +00:00
Improve theme file
This commit is contained in:
parent
1f0b461f29
commit
6cfe44eb66
|
@ -1,31 +1,28 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
# af-magic.zsh-theme
|
# af-magic.zsh-theme
|
||||||
# Repo: https://github.com/andyfleming/oh-my-zsh
|
# Repo: https://github.com/andyfleming/oh-my-zsh
|
||||||
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
|
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
|
||||||
|
|
||||||
|
|
||||||
# settings
|
# settings
|
||||||
typeset +H return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
typeset +H return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
typeset +H my_gray="$FG[237]"
|
typeset +H GRAY="$FG[237]"
|
||||||
typeset +H my_orange="$FG[214]"
|
typeset +H RED="$FG[196]"
|
||||||
typeset +H my_red="$FG[196]"
|
typeset +H YELLOW="$FG[226]"
|
||||||
|
typeset +H BLUE="$FG[032]"
|
||||||
|
typeset +H PURPLE="$FG[105]"
|
||||||
|
|
||||||
# separator dashes size
|
# Primary Prompt
|
||||||
function afmagic_dashes {
|
[ "$EUID" -eq 0 ] && PS1="$RED%n@%m " || PS1="$GRAY%n@%m " # user@machine (red/gray based on root)
|
||||||
# [[ -n "${VIRTUAL_ENV-}" && -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" && "$PS1" = \(* ]] \
|
PS1+="$BLUE%~" # cwd
|
||||||
# && echo $(( COLUMNS - ${#VIRTUAL_ENV} - 3 )) \
|
PS1+='$(git_prompt_info)$(hg_prompt_info)' # git,hg
|
||||||
# || echo $COLUMNS
|
PS1+=" $PURPLE%(!.#.»)%{$reset_color%} " # final symbol
|
||||||
}
|
|
||||||
|
|
||||||
# primary prompt
|
# Next line prompt
|
||||||
[ "$EUID" -eq 0 ] && PS1='$my_red%n@%m ' || PS1='$my_gray%n@%m '
|
PS2="%{$RED%}\ %{$reset_color%}"
|
||||||
|
|
||||||
PS1+='$FG[032]%~$(git_prompt_info)$(hg_prompt_info) $FG[105]%(!.#.»)%{$reset_color%} '
|
# Right side prompt
|
||||||
PS2='%{$fg[red]%}\ %{$reset_color%}'
|
RPS1="${return_code}"
|
||||||
RPS1='${return_code}'
|
(( $+functions[virtualenv_prompt_info] )) && RPS1+="$(virtualenv_prompt_info)"
|
||||||
|
|
||||||
# right prompt
|
|
||||||
(( $+functions[virtualenv_prompt_info] )) && RPS1+='$(virtualenv_prompt_info)'
|
|
||||||
#RPS1+=' $my_gray%n@%m%{$reset_color%}%'
|
|
||||||
|
|
||||||
# git settings
|
# git settings
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075]($FG[078]"
|
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075]($FG[078]"
|
||||||
|
|
Loading…
Reference in a new issue