Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to add two empty lines before and after output (stdout) of any command?
- X-seq: zsh-users 11792
- From: "Y@R" <yarodin@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: How to add two empty lines before and after output (stdout) of any command?
- Date: Thu, 23 Aug 2007 09:16:30 +0600
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MrOogFtzSq0LCnuzayNHCLx1D0GhwcVW1PJYKx+8FdfVSQkv60Zu6FiO+Hs2L6a2bRMkxjDLFEunFebsnyCVn21kL+xAN5WFvL+iOgFJQt9ejIrNzPMQ6oviZfqJlLGJF93ooer8KFjoBVlVA9ACNERMsJFmz034zwf0TFrrQ0A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=OdEOY2/fP300iiTQ+0WaGjkH2ozrqrg50CjnguJvQOz/lvroksY4pCD4z026jRM9Z2wtT/itaLF7iAeLQdEURRGBgZKsYoqEKUkMQS2gVKe/aO4yr3yYsT/XWiF84HRPiaG4/VX8AQ8t+2vE1As8BPF1zye20m4N1VSWpOCsmdA=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Now i'm using for it:
precmd () { print -P "%E\n" }
preexec () { print -P "%E" }
Hit enter at prompt:
#
\n
#
Command with output to stdout:
#ls
\n
dev bin home etc ...
\n
#
And almost all is ok. But if command without output than i get two
empty lines together - it's not looks fine.
# cd /
\n
\n
#
Is it possible to solve this problem?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author