-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
Prevent change shell during setup #4261
Comments
There isn't. But this might be nice to have. (And if you want to go fully-scriptable, you'd probably want is a full "non-interactive" flag for the installer, because there are other points it might block and wait on user input as well, like the password for Since the installer is a core part of OMZ, changes to it take a while to go through. However, the installer doesn't care where it's run from, so you can easily make your own variant of it. Just create a new repo, copy the installer over, remove those last couple lines, and use the URL to your installer instead of the default one when doing your scripted installations. |
That's how babun does it anyway, I think. A simple git clone and the zshrc file modification is all that's needed, in fact. |
I don't find the trigger line for starting the actual z-shell. There are a lot of things being sourced though |
I'm not sure I understand what you're saying here. Aside from its installer, nothing in Oh My Zsh starts |
@apjanke i observed that after running |
Ah: yes, during the installer, it is. But that's just a one-time quirk of the installer (sort of giving you a preview of what your Once it's installed, the normal sequence is: you start up a shell session, and OMZ is loaded automatically from |
Is it possible to disable this functionality? (the one-time quirk of the installer). Looking at what you wrote in the other issue there is no official option yet. So that would leaving hacking it a bit, i wonder if this is a one-liner or drastically change things around. |
Easy change. Just comment out these last two lines
|
thanks @apjanke shall i leave the issue open for the official option? |
We can open a tracking issue related to the install script and point here. There are a number of issues with it and we should collect them. It doesn't matter if this one is closed, we got the feature request and we'll put it there. |
Could wrap the code in a file descriptor check:
Then run the install like:
|
I've done some hacking, for automating OMZ installation process: sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sed '/\s*env\s\s*zsh\s*/d')" \ For other modifications, it's better to revert them after running the install script. See http://lezsakdomi-home.herokuapp.com/.bashrc and grep for |
NO_INTERACTIVE=true sh -c "$(curl -fsSL https://raw.githubusercontent.com/subtlepseudonym/oh-my-zsh/feature/install-noninteractive/tools/install.sh)"
|
Hi there, I pulled the changes from #7266 in #5169, which mean you can now add If you want to help speed up the testing and merge (which should happen early next week), you can wget or curl it from the URL Thanks! |
Is there a flag to the setup script that prevents changing to zsh after installation? I would like zsh to become the default shell but not on the shell session during installation. This is because i have an installation script which halts when installing oh my zsh. I have to manually type exit before the script resumes in the old shell.
The text was updated successfully, but these errors were encountered: