From d39eb053cfd40fa6c5a6aad9c8eb5208e922496b Mon Sep 17 00:00:00 2001 From: BarbUk Date: Wed, 1 Apr 2020 00:46:58 +0400 Subject: [PATCH] Allow to disable ssh info --- themes/barbuk/barbuk.theme.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/barbuk/barbuk.theme.bash b/themes/barbuk/barbuk.theme.bash index 372b8a0d..ead0940a 100644 --- a/themes/barbuk/barbuk.theme.bash +++ b/themes/barbuk/barbuk.theme.bash @@ -9,6 +9,9 @@ SCM_GIT_CHAR_DEFAULT=${SCM_GIT_CHAR_DEFAULT:=' '} SCM_GIT_CHAR_ICON_BRANCH=${SCM_GIT_CHAR_ICON_BRANCH:=''} EXIT_CODE_ICON=${EXIT_CODE_ICON:=' '} +# Ssh user and fqdn display +SSH_INFO=${BARBUK_SSH_INFO:=true} + # Bash-it default glyphs customization SCM_HG_CHAR='☿ ' SCM_SVN_CHAR='⑆ ' @@ -75,7 +78,7 @@ function _prompt { fi # Detect ssh - if [[ -n "${SSH_CLIENT}" ]] || [[ -n "${SSH_CONNECTION}" ]]; then + if [[ -n "${SSH_CONNECTION}" ]] && [ "$SSH_INFO" = true ]; then ssh_info="${bold_blue}\u${bold_orange}@${cyan}\H ${bold_orange}in" fi