Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Suggestion: CD_SILENT option.
- X-seq: zsh-workers 1762
- From: Andrej Borsenkow <borsenkow.msk@xxxxxx>
- To: Zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: Suggestion: CD_SILENT option.
- Date: Thu, 25 Jul 1996 12:28:34 +0400 (MOW)
- Reply-to: borsenkow.msk@xxxxxx
Hi!
Just small suggestion - add CD_SILENT option to make `cd' silently change
to non-local directory (using CDPATH).
Rationale: almost everybody includes some indication of current directory
in prompt. As in zsh it is much more easier/elegant to do it as in other
shells I know of, this printing of `cd' is just unneccessary. It just
wastes line on terminal.
I include diffs against zsh-3.0-pre3 just in case ;) (Sorry, cannot
include diffs to info/man - no idea how to do it).
greetings
-------------------------------------------------------------------------
Andrej Borsenkow Fax: +7 (095) 252 01 05
SNI ITS Moscow Tel: +7 (095) 252 13 88
NERV: borsenkow.msk E-Mail: borsenkow.msk@xxxxxx
-------------------------------------------------------------------------
===================================================
--- Src/builtin.c.org Thu Jul 18 13:54:18 1996
+++ Src/builtin.c Thu Jul 25 10:39:56 1996
@@ -1258,7 +1258,7 @@
pm->env = replenv(pm->env, oldpwd);
if (unset(PUSHDSILENT) && func != BIN_CD && isset(INTERACTIVE))
printdirstack();
- else if (doprintdir) {
+ else if (unset(CDSILENT) && doprintdir) {
fprintdir(pwd, stdout);
putchar('\n');
}
--- Src/globals.h.org Thu Jul 18 13:54:19 1996
+++ Src/globals.h Thu Jul 25 10:40:39 1996
@@ -677,6 +677,7 @@
{"braceccl", 0, 0, 0},
{"bsdecho", 0, 0, OPT_EMULATE|OPT_SH},
{"cdablevars", 'T', 0, 0},
+ {"cdsilent", 0, 0, 0},
{"chaselinks", 'w', 0, 0},
{"completealiases", 0, 0, 0},
{"completeinword", 0, 0, 0},
--- Src/zsh.h.org Thu Jul 18 13:54:24 1996
+++ Src/zsh.h Thu Jul 25 10:41:01 1996
@@ -1052,6 +1052,7 @@
BRACECCL,
BSDECHO,
CDABLEVARS,
+ CDSILENT,
CHASELINKS,
COMPLETEALIASES,
COMPLETEINWORD,
Messages sorted by:
Reverse Date,
Date,
Thread,
Author