mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
15021: new %y character; %l semantic back
This commit is contained in:
parent
551b5d1499
commit
791e11a084
3 changed files with 17 additions and 1 deletions
|
|
@ -514,6 +514,14 @@ putpromptchar(int doprint, int endchar)
|
|||
stradd(get_username());
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue