From a24fbae64d852851c86e83fc095c62b095e4b8e7 Mon Sep 17 00:00:00 2001 From: hophacker Date: Fri, 20 Sep 2019 17:51:19 +0800 Subject: [PATCH] =?UTF-8?q?show=20=F0=9F=94=97=20if=20in=20pzsh=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zsh/aliases.zsh | 2 +- zsh/prezto-themes/prompt_skwp_setup | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 99e697a..88a494b 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -257,4 +257,4 @@ alias dsrubocop='ds rubocop --require rubocop/formatter/junit_formatter \ --require rubocop-performance \ --format progress' alias docker_purge='docker stop $(docker ps -qa);docker rm $(docker ps -qa)' -alias pzsh='proxychains zsh' +alias pzsh='USING_PROXYCHAINS=true proxychains zsh' diff --git a/zsh/prezto-themes/prompt_skwp_setup b/zsh/prezto-themes/prompt_skwp_setup index b76019a..3afcea7 100644 --- a/zsh/prezto-themes/prompt_skwp_setup +++ b/zsh/prezto-themes/prompt_skwp_setup @@ -68,6 +68,7 @@ function prompt_skwp_setup { zstyle ':prezto:module:ruby:info:version' format '[%v]' 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]}' }