1
0

support more nesting levels

This commit is contained in:
Konstantin Demin 2021-03-22 15:32:51 +03:00
parent ad82f32828
commit 26f29d0514
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6
2 changed files with 5 additions and 8 deletions

View File

@ -38,5 +38,6 @@ z-run-test() {
} }
z-run-test gui konsole xterm x-terminal-emulator z-run-test gui konsole xterm x-terminal-emulator
z-run-test nested screen tmux z-run-test nested screen tmux mc
z-run-test nested1 mc
z-run-test elevated sudo su z-run-test elevated sudo su

View File

@ -75,10 +75,6 @@ function {
ZSHU_PS[ps1_1L]="${(j::)line}" ZSHU_PS[ps1_1L]="${(j::)line}"
} }
ZSHU_PS[ps1_standard]=${ZSHU_PS[ps1_3L]} PS1=${ZSHU_PS[ps1_3L]}
ZSHU_PS[ps1_nested]=${ZSHU_PS[ps1_2L]} [ "${ZSHU_RUN[nested]}" = 1 ] && PS1=${ZSHU_PS[ps1_2L]}
[ "${ZSHU_RUN[nested1]}" = 1 ] && PS1=${ZSHU_PS[ps1_1L]}
if [ "${ZSHU_RUN[nested]}" = 0 ]
then PS1=${ZSHU_PS[ps1_standard]}
else PS1=${ZSHU_PS[ps1_nested]}
fi