Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
00a190bc
Commit
00a190bc
authored
15 years ago
by
Robby Russell
Browse files
Options
Download
Email Patches
Plain Diff
Oh My Zsh gets a weekly auto-updater... the future is now!
parent
700a3f0b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/misc.zsh
+9
-1
lib/misc.zsh
templates/zshrc.zsh-template
+3
-0
templates/zshrc.zsh-template
tools/upgrade.sh
+1
-1
tools/upgrade.sh
with
13 additions
and
2 deletions
+13
-2
lib/misc.zsh
View file @
00a190bc
...
...
@@ -7,3 +7,11 @@ bindkey "^[m" copy-prev-shell-word
## jobs
setopt long_list_jobs
# Check for updates on initial load...
if
[
"
$DISABLE_AUTO_UPDATE
"
=
"true"
]
then
return
else
/bin/sh
$ZSH
/tools/check_for_upgrade.sh
fi
This diff is collapsed.
Click to expand it.
templates/zshrc.zsh-template
View file @
00a190bc
...
...
@@ -5,6 +5,9 @@ export ZSH=$HOME/.oh-my-zsh
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="robbyrussell"
# Comment this out to disable weekly auto-update checks
# export DISABLE_AUTO_UPDATE="false"
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
This diff is collapsed.
Click to expand it.
tools/upgrade.sh
View file @
00a190bc
current_path
=
`
pwd
`
echo
"Upgrading Oh My Zsh"
(
cd
$ZSH
&&
git pull origin master
)
echo
"
Done
."
echo
"
Hooray! Oh My Zsh has been updated and/or is at the current version.
\n
Any new updates will be reflected when you start your next terminal session
."
cd
$current_path
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help