From b4866fd408012424029fdd55af63b3cf0d09daba Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Thu, 9 Jul 2020 11:43:15 +0300 Subject: [PATCH] bash: PS4 --- etc/shell/bash/bashrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/etc/shell/bash/bashrc b/etc/shell/bash/bashrc index 75ca0e3..bbf7b46 100755 --- a/etc/shell/bash/bashrc +++ b/etc/shell/bash/bashrc @@ -1,6 +1,6 @@ #!/bin/bash #################################################################### # -# Изменён: Пт 21 фев 2020 14:24:30 +# Изменён: чт 09 июл 2020 11:42:42 # ################################################################################ @@ -225,9 +225,11 @@ esac [ -n "$SSH_CLIENT" ] && PROMPT_SHH="[${red}ssh${PROMPT_COLOR}]" -PS2="$green-> $rstc" -PS3="$green+> $rstc" -PS4="$green++ $rstc" +export PS2="$green-> $rstc" +export PS3="$green+> $rstc" + +# + filename.sh:00NN: function(): command +export PS4='$(printf "+ \033[1;32m%s:\033[0;36m%04d: \033[1;35m%s\033[00m" $(basename $BASH_SOURCE) $LINENO ${FUNCNAME[0]:+${FUNCNAME[0]}():\ })' short_pwd() { # echo -en '  '