From: 08-sequel.tarns@icloud.com
To: zsh-workers@zsh.org
Subject: Prompt themes masking output from some applications [macOS]
Date: Mon, 20 Mar 2023 16:17:37 +0000 [thread overview]
Message-ID: <22310DFE-C684-4446-AA61-5E0D9A65B5D7@ourpostbox.co.uk> (raw)
Issue:
Using a simple Apple shortcut app (called apc) as an example that returned some textual,
number or date output I tried the following.
> shortcuts run apc | cat
I could not get any output
This used to work. However, using the following methods I could see still the result
> shortcuts run apc | xargs
> cat <<< $(shortcuts run apc)
I found that the issue was caused by the following, added to the system /etc/zshrc
by a third-party package management and configuration utility called Nix and Darwin-Nix.
It called an autogenerated generated file under /etc/static/zshrc which had the following line.
> autoload -U promptinit && promptinit && prompt walters
The output was there all along it was the prompt theme writing over it.
This was so fast it gave the appearance that nothing was printed.
A Temporary fix is to comment out
# autoload -U promptinit && promptinit && prompt walters
Or turn the prompt theme off at some point in the shell configuration.
> prompt off
I believe that there may be an issue at /Functions/Prompts/
https://sourceforge.net/p/zsh/code/ci/master/tree/Functions/Prompts/
Not sure if it is promptinit or something in individual themes.
next reply other threads:[~2023-03-20 16:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 16:17 08-sequel.tarns [this message]
2023-03-20 16:22 ` Roman Perepelitsa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22310DFE-C684-4446-AA61-5E0D9A65B5D7@ourpostbox.co.uk \
--to=08-sequel.tarns@icloud.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).