From a238a636f8d13683a95ff840fd23e1968694e4f3 Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 28 Jun 2017 20:08:49 +0300 Subject: [PATCH] always show username in prompt --- bashrc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index f2ae8c9..3a42167 100644 --- a/bashrc +++ b/bashrc @@ -42,14 +42,11 @@ prompt_command() printf "\033k%s@%s\033\\" "${USER}" "${HOSTNAME%%.*}" ;; esac - if [[ ${USER} == 'von' ]]; then - prompt_user="" - else - prompt_user="${pred}\u${preset} " - fi if ((UID)); then + prompt_user="${pblack}\u${preset} " bang="${pblack}>" else + prompt_user="${pred}\u${preset} " bang="${pred}>" fi ps_line1="[ ${prompt_user}${HOSTNAME}:${pblack}$(pwd)${preset} ]"