代码拉取完成,页面将自动刷新
# justinchen.zsh-theme
# Use with a dark background and 256-color terminal!
# Tested only on Linux
# You can set your computer name in the ~/.box-name file if you want.
# Borrowing shamelessly from these oh-my-zsh themes:
# fino-time as the main template
# blinks for history num
# half-life for lamda char
# darkblood for pts
# rgm for exit code
# xiong_chiamiov-plus for time fomat
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST}
}
autoload -U add-zsh-hook
autoload -Uz vcs_info
#use extended color pallete if available
if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then
turquoise="%F{81}"
orange="%F{166}"
purple="%F{135}"
hotpink="%F{161}"
limegreen="%F{118}"
else
turquoise="$fg[cyan]"
orange="$fg[yellow]"
purple="$fg[magenta]"
hotpink="$fg[red]"
limegreen="$fg[green]"
fi
# enable VCS systems you use
zstyle ':vcs_info:*' enable git svn
zstyle ':vcs_info:*:prompt:*' check-for-changes true
local current_dir='${PWD/#$HOME/~}'
local git_info='$(git_prompt_info)'
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%}%{$FG[239]%}@%{$reset_color%}%{$FG[039]%}$(box_name)%{$reset_color%}%{$FG[239]%} %{$reset_color%}%{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%} %{$FG[239]%}[/dev/%y%{$reset_color%}%{$FG[239]%}] !%{%!%} %{$FG[243]%} %*%{$reset_color%}
╰─${git_info}%{$orange%} λ %{$reset_color%}"
RPROMPT="%{$fg[red]%}${return_code}%{$reset_color%}"
PS2=$'%{$FG[023]%}|>%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[202]%}✘✘✘"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$FG[040]%}✔"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。