* Prompt themes masking output from some applications [macOS]
@ 2023-03-20 16:17 08-sequel.tarns
2023-03-20 16:22 ` Roman Perepelitsa
0 siblings, 1 reply; 2+ messages in thread
From: 08-sequel.tarns @ 2023-03-20 16:17 UTC (permalink / raw)
To: zsh-workers
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Prompt themes masking output from some applications [macOS]
2023-03-20 16:17 Prompt themes masking output from some applications [macOS] 08-sequel.tarns
@ 2023-03-20 16:22 ` Roman Perepelitsa
0 siblings, 0 replies; 2+ messages in thread
From: Roman Perepelitsa @ 2023-03-20 16:22 UTC (permalink / raw)
To: 08-sequel.tarns; +Cc: zsh-workers
On Mon, Mar 20, 2023 at 5:18 PM <08-sequel.tarns@icloud.com> wrote:
>
> autoload -U promptinit && promptinit && prompt walters
This theme sets nopromptsp, which is usually a terrible idea.
adam% autoload -U promptinit && promptinit && prompt walters
romka@adam> print -n hello
romka@adam>
Note the absence of output from `print`.
Roman.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-20 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 16:17 Prompt themes masking output from some applications [macOS] 08-sequel.tarns
2023-03-20 16:22 ` Roman Perepelitsa
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).