1
0
Fork 0

always show username in prompt

This commit is contained in:
Von Random 2017-06-28 20:08:49 +03:00
parent 00d5050770
commit a238a636f8

7
bashrc
View file

@ -42,14 +42,11 @@ prompt_command()
printf "\033k%s@%s\033\\" "${USER}" "${HOSTNAME%%.*}" printf "\033k%s@%s\033\\" "${USER}" "${HOSTNAME%%.*}"
;; ;;
esac esac
if [[ ${USER} == 'von' ]]; then
prompt_user=""
else
prompt_user="${pred}\u${preset} "
fi
if ((UID)); then if ((UID)); then
prompt_user="${pblack}\u${preset} "
bang="${pblack}>" bang="${pblack}>"
else else
prompt_user="${pred}\u${preset} "
bang="${pred}>" bang="${pred}>"
fi fi
ps_line1="[ ${prompt_user}${HOSTNAME}:${pblack}$(pwd)${preset} ]" ps_line1="[ ${prompt_user}${HOSTNAME}:${pblack}$(pwd)${preset} ]"