diff options
author | Andrey Borzenkov <bor@users.sourceforge.net> | 2001-06-22 09:44:06 +0000 |
---|---|---|
committer | Andrey Borzenkov <bor@users.sourceforge.net> | 2001-06-22 09:44:06 +0000 |
commit | 791e11a084882f69e1e7373c80024d3f78b10baa (patch) | |
tree | 2abcec3b1cfa9548009738730c7d0be0a7c48c16 /Src/prompt.c | |
parent | 551b5d149923b290d6f7d2cb1408d40c0e1fc2a8 (diff) | |
download | zsh-791e11a084882f69e1e7373c80024d3f78b10baa.tar.gz zsh-791e11a084882f69e1e7373c80024d3f78b10baa.tar.xz zsh-791e11a084882f69e1e7373c80024d3f78b10baa.zip |
15021: new %y character; %l semantic back
Diffstat (limited to 'Src/prompt.c')
-rw-r--r-- | Src/prompt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Src/prompt.c b/Src/prompt.c index 47c8af797..d5df9d1ce 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -515,6 +515,14 @@ putpromptchar(int doprint, int endchar) break; case 'l': if (*ttystrname) { + ss = (strncmp(ttystrname, "/dev/tty", 8) ? + ttystrname + 5 : ttystrname + 8); + stradd(ss); + } else + stradd("()"); + break; + case 'y': + if (*ttystrname) { ss = (strncmp(ttystrname, "/dev/", 5) ? ttystrname : ttystrname + 5); stradd(ss); |