mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merge 579613bf6c into 167f84dacd
This commit is contained in:
commit
3d3d655282
2 changed files with 5 additions and 2 deletions
|
|
@ -19,12 +19,15 @@ then
|
||||||
epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
|
epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
|
||||||
if [ $epoch_diff -gt 6 ]
|
if [ $epoch_diff -gt 6 ]
|
||||||
then
|
then
|
||||||
|
if [ -z "$ZSH" ]
|
||||||
|
ZSH=$HOME/.oh-my-zsh
|
||||||
|
echo $SHELL
|
||||||
echo "[Oh My Zsh] Would you like to check for updates?"
|
echo "[Oh My Zsh] Would you like to check for updates?"
|
||||||
echo "Type Y to update oh-my-zsh: \c"
|
echo "Type Y to update oh-my-zsh: \c"
|
||||||
read line
|
read line
|
||||||
if [ "$line" = Y ] || [ "$line" = y ]
|
if [ "$line" = Y ] || [ "$line" = y ]
|
||||||
then
|
then
|
||||||
/bin/sh $ZSH/tools/upgrade.sh
|
$SHELL "$ZSH/tools/upgrade.sh"
|
||||||
# update the zsh file
|
# update the zsh file
|
||||||
_update_zsh_update
|
_update_zsh_update
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
current_path=`pwd`
|
current_path=`pwd`
|
||||||
echo -e "\033[0;34mUpgrading Oh My Zsh\033[0m"
|
echo -e "\033[0;34mUpgrading Oh My Zsh\033[0m"
|
||||||
( cd $ZSH && git pull origin master )
|
( cd "$ZSH" && git pull origin master )
|
||||||
echo -e "\033[0;32m"' __ __ '"\033[0m"
|
echo -e "\033[0;32m"' __ __ '"\033[0m"
|
||||||
echo -e "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"
|
echo -e "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"
|
||||||
echo -e "\033[0;32m"' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '"\033[0m"
|
echo -e "\033[0;32m"' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '"\033[0m"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue