From 7aa9218d11493ea420bfa8f1ab2c03301a4fcf49 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Fri, 24 Sep 2021 17:14:42 +0300 Subject: [PATCH] ref --- .bashrc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index 92bda73..b64e19a 100644 --- a/.bashrc +++ b/.bashrc @@ -18,16 +18,14 @@ export HISTIGNORE="&:l[lsa\.]:[bf]g:exit:q:clear:c:history:h" parse_git_branch() { if ! [ -x "$(which git)" ]; then - echo '' return fi + local branch branch="$(git branch --show-current 2> /dev/null)" if [[ -n "$branch" ]]; then echo "($branch)" - else - echo '' fi } @@ -38,9 +36,6 @@ virtualenv_info() { if [[ -n "$VIRTUAL_ENV" ]]; then # Strip out the path and just leave the env name echo "($(basename $VIRTUAL_ENV))" - else - # In case you don't have one activated - echo '' fi }