mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
del: Submodule is not safe enough.
This commit is contained in:
parent
caae8a1220
commit
dd40b27a41
4 changed files with 3 additions and 12 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,3 +0,0 @@
|
||||||
[submodule "plugins/zsh-syntax-highlighting"]
|
|
||||||
path = plugins/zsh-syntax-highlighting
|
|
||||||
url = git://github.com/zsh-users/zsh-syntax-highlighting.git
|
|
||||||
|
|
@ -22,9 +22,9 @@ h4. via `wget`
|
||||||
h3. The manual way
|
h3. The manual way
|
||||||
|
|
||||||
|
|
||||||
1. Clone the repository and all submodules.
|
1. Clone the repository
|
||||||
|
|
||||||
@git clone --recursive git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@
|
@git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@
|
||||||
|
|
||||||
2. *OPTIONAL* Backup your existing ~/.zshrc file
|
2. *OPTIONAL* Backup your existing ~/.zshrc file
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,6 @@ hash git >/dev/null && /usr/bin/env git clone https://github.com/robbyrussell/oh
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "\033[0;34mCloining submodule...\033[0m"
|
|
||||||
current_path=`pwd`
|
|
||||||
cd ~/.oh-my-zsh
|
|
||||||
/usr/bin/env git submodule update --init
|
|
||||||
cd "$current_path"
|
|
||||||
|
|
||||||
echo "\033[0;34mLooking for an existing zsh config...\033[0m"
|
echo "\033[0;34mLooking for an existing zsh config...\033[0m"
|
||||||
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
|
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
|
||||||
then
|
then
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ current_path=`pwd`
|
||||||
printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh"
|
printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh"
|
||||||
cd "$ZSH"
|
cd "$ZSH"
|
||||||
|
|
||||||
if git pull origin master && git submodule foreach git pull
|
if git pull origin master
|
||||||
then
|
then
|
||||||
printf '\033[0;32m%s\033[0m\n' ' __ __ '
|
printf '\033[0;32m%s\033[0m\n' ' __ __ '
|
||||||
printf '\033[0;32m%s\033[0m\n' ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '
|
printf '\033[0;32m%s\033[0m\n' ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue