mirror of
https://github.com/gunchev/home_bin.git
synced 2025-11-20 12:15:46 +00:00
Preserve PROMPT_COMMAND if set, name this z-smth in profile.d
vte.sh from vte291 coexistence See https://bugzilla.redhat.com/show_bug.cgi?id=1183192 In oreder work this script should be sourced after vte.sh, so the name should be something that sorts after vte.sh (z-ps-twtty-7.sh)
This commit is contained in:
parent
4f72457927
commit
a1b1f0a3df
1 changed files with 7 additions and 3 deletions
|
|
@ -134,7 +134,7 @@ function twtty {
|
|||
;;
|
||||
esac
|
||||
|
||||
PS1="$TITLEBAR\
|
||||
export PS1="$TITLEBAR\
|
||||
${C1}┌${C2}─(\
|
||||
${C1}\${my_D}${C2}, ${C1}Err ${C3}\$?${C2}, ${C3}\${my_TTY}\
|
||||
${C2})─${C1}─\${my_FILL}${C2}─(\
|
||||
|
|
@ -145,8 +145,12 @@ ${C1}└${C2}─(\
|
|||
${C1}\${USER}${C2}@${C1}\${HOSTNAME%%.*}\
|
||||
${C2})${C3}\$${NO_COLOUR} "
|
||||
|
||||
PS2="${C2}─${C1}─${C1}─${NO_COLOUR} \[\033[K\]"
|
||||
PROMPT_COMMAND=prompt_command
|
||||
export PS2="${C2}─${C1}─${C1}─${NO_COLOUR} \[\033[K\]"
|
||||
if [ -z "${PROMPT_COMMAND}" ]; then
|
||||
export PROMPT_COMMAND=prompt_command
|
||||
else
|
||||
export PROMPT_COMMAND="${PROMPT_COMMAND}; prompt_command"
|
||||
fi
|
||||
trap prompt_command_exit EXIT
|
||||
shopt -s cmdhist histappend
|
||||
export HISTCONTROL='ignorespace:erasedups'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue