-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
77 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ [email protected] | |
GIT_USING_PROXY=true | ||
GIT_PROXY=http://ghproxy.com | ||
|
||
JAVA_VERSIONS=(8 11) | ||
JAVA_VERSIONS=(8 11 17) | ||
JAVA_DEFAULT_VERSION=8 | ||
PYTHON_VERSIONS=(3.10.1 2.7.18) | ||
PYTHON_DEFAULT_VERSION=3.10.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
Green="\033[32m" | ||
Font="\033[0m" | ||
|
||
function checkout_branch() { | ||
branch=$1 | ||
git branch|grep $branch >/dev/null 2>&1 | ||
if [[ $? == 0 ]]; then | ||
git checkout $branch | ||
git pull origin $branch | ||
else | ||
git checkout -b $branch origin/$branch | ||
fi | ||
} | ||
|
||
function menu() { | ||
echo -e "${Green}0.${Font} master, \t回到 master" | ||
echo -e "${Green}1.${Font} macos-arm, \tmac m1 芯片" | ||
echo -e "${Green}2.${Font} macos-x86, \tmac intel 芯片" | ||
read -rp "请输入数字执行:" menu_num | ||
case $menu_num in | ||
0) | ||
cd $DOTFILES && checkout_branch master | ||
;; | ||
1) | ||
cd $DOTFILES && checkout_branch macos-arm | ||
;; | ||
2) | ||
cd $DOTFILES && checkout_branch macos-x86 | ||
;; | ||
*) | ||
ret=1 | ||
;; | ||
esac | ||
exit ${ret} | ||
} | ||
|
||
menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters