Skip to content
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

Update: don't prompt the first time zsh starts #3277

Closed
zezadas opened this issue Oct 30, 2014 · 3 comments
Closed

Update: don't prompt the first time zsh starts #3277

zezadas opened this issue Oct 30, 2014 · 3 comments

Comments

@zezadas
Copy link

zezadas commented Oct 30, 2014

I use zsh as my main shell, and I login via startx, so when I have the option to update day by day, when I boot the PC, I get a message prompting if I want to update oh-my-zsh, its really annoying, because I just want to startx and I don't have internet before login. Since I like to be updated, but dont like to be asked to update every time I start my computer, I asking if you could make an option to disable update message for example, the first time ZSH starts.

Thanks for this amazing framework, keep the good work :)

@zezadas zezadas changed the title New feature update New feature for update Oct 30, 2014
@mcornella
Copy link
Member

You could make this yourself, if you check for the initial login and set the DISABLE_AUTO_UPDATE option accordingly. Like this:

[[ is FIRST-TIME SHELL ]] && DISABLE_AUTO_UPDATE=true

I don't know the condition that would complete this, but it's a start.
You need to check for the zsh to be a login shell: http://zsh.sourceforge.net/Guide/zshguide02.html#l8

@apjanke
Copy link
Contributor

apjanke commented Nov 6, 2015

A login shell isn't going to be a sufficient test. Most shells that users fire up are going to be login shells. (This is the default for most terminal emulators I'm familiar with.)

@mcornella
Copy link
Member

Then maybe checking the value of tty (or $TTY). If it's not a pseudo-terminal don't prompt for update, or something like that.

@mcornella mcornella changed the title New feature for update Update: don't prompt the first time zsh starts Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants