show 🔗 if in pzsh mode

This commit is contained in:
hophacker 2019-09-20 17:51:19 +08:00
parent 789e653cde
commit a24fbae64d
2 changed files with 2 additions and 1 deletions

View File

@ -257,4 +257,4 @@ alias dsrubocop='ds rubocop --require rubocop/formatter/junit_formatter \
--require rubocop-performance \ --require rubocop-performance \
--format progress' --format progress'
alias docker_purge='docker stop $(docker ps -qa);docker rm $(docker ps -qa)' alias docker_purge='docker stop $(docker ps -qa);docker rm $(docker ps -qa)'
alias pzsh='proxychains zsh' alias pzsh='USING_PROXYCHAINS=true proxychains zsh'

View File

@ -68,6 +68,7 @@ function prompt_skwp_setup {
zstyle ':prezto:module:ruby:info:version' format '[%v]' zstyle ':prezto:module:ruby:info:version' format '[%v]'
PROMPT="${__PROMPT_SKWP_COLORS[3]}%n%f ${__PROMPT_SKWP_COLORS[5]}%~%f "'$git_info[prompt]'"$ " PROMPT="${__PROMPT_SKWP_COLORS[3]}%n%f ${__PROMPT_SKWP_COLORS[5]}%~%f "'$git_info[prompt]'"$ "
[[ $USING_PROXYCHAINS == 'true' ]] && PROMPT="🔗 $PROMPT"
RPROMPT='%F{blue}${ruby_info[version]}' RPROMPT='%F{blue}${ruby_info[version]}'
} }