Open xcodedave opened 1 year ago
As a temporary workaround for my machine, this is working in my ~/.zshrc
file:
FRUM_INIT_OUTPUT="$(frum init)"
FIXED_FRUM_INIT_OUTPUT=${FRUM_INIT_OUTPUT%%"\\
&& _frum_autoload_hook"}
eval "$FIXED_FRUM_INIT_OUTPUT"
I’ll check it later.
The problem is that frum init
is generating this line in _frum_autoload_hook
:
frum --log-level quiet local
It looks like the root cause is that the local
subcommand is failing. Running it on the terminal fails with:
error: Can't find version in dotfiles. Please provide a version manually to the command.
The --log-level quiet
option suppresses this error output but the command still fails with exit code 1.
A good fix would be a new option so that local
wouldn't fail with exit code 1 when there isn't a dotfile with the version, e.g. something like frum --log-level quiet --ignore-if-not-found local
.
Meanwhile this is a workaround:
eval "$(frum init | sed "s/quiet local/quiet local | true/")"
Hi, running
eval "$(frum init)"
on macOS Ventura 13.1 appears to produce incorrect output. Placingeval "$(frum init)"
within my~/.zshrc
file caused errors whensource ~/.zshrc
was run.Running
frum init
directly generates the following output on my machine:Directly running the following command fails on my machine:
I managed to get it working by removing the trailing
\ && _frum_autoload_hook
from theadd-zsh-hook
command.Is this a bug?