New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it easier to automate installation #148
Comments
The missing part seems to be to ease preventing the install prompt. Maybe this:
(edited as per following comment) |
I think you mean: broot --refuse-auto-install
broot --print-shell-function zsh > ~/bin/shell/3rdparty/br.zsh But yes that would be perfect. |
This can be used in tests or manual installs to set the installation state. For example, if you make an installation script which automatically
|
This whole install state thing is a bit unfit if the package isn't installed through $HOME, which is also the case with Nix. How about having an environment variable instead, e.g.
This means that whenever the user called the @kbd's above use-case can then also be replaced with
Maybe this could even be |
I noticed you recently created the
--print-shell-function
flag in #145. That enabled me to automate the installation of the shell script, but to fully automate the installation and avoid the install prompt the first time I runbroot
on a computer, I had to do the following:One suggestion would be to have
broot --install-shell-function {shell} {path}
as a parallel option tobroot --install
that will create the shell function forshell
atpath
and disable the install prompt.So the above could just be:
broot --install-shell-function zsh ~/bin/shell/3rdparty/br.zsh
That would keep me from having to encode, in my setup program, details about how
broot
marks itself as having been installed.The text was updated successfully, but these errors were encountered: