Commit 7b0ed7df authored by brucekomike's avatar brucekomike
Browse files

macos script update

No related merge requests found
Showing with 52 additions and 3 deletions
+52 -3
# 开发环境快速部署脚本
## 目标平台
- [ ] MacOS 14.4 and later
- [x] MacOS 14.4 and later
- [ ] Windows 23H2 and later
- [ ] Ubuntu 24.04 and later
- [x] Arch (linux 6.8.9) and later
......
......@@ -14,12 +14,59 @@ function check_brew(){
function install_packages(){
CASK_PACKAGES=""
FORMULA_PACKAGES=""
###################
#this part for brew packages
###################
BASIC_PACKAGES="zsh-completions nmap http-server keka"
IDE_PACKAGES="android-studio godot visual-studio-code"
ADB_PACKAGES="scrcpy android-platform-tools"
BROWSER_PACKAGES="firefox google-chrome@beta"
OFFICE_PACKAGES="libreoffice calibre"
DOCUMENT_PACKAGES="xournal-plus-plus zettlr obsidian logseq appflowy"
WACOM_PACKAGES="wacom-tablet"
MEDIA_PACKAGES="kodi vlc"
VIDEO_PACKAGES="olive kdenlive obs ffmpeg"
IMG_PACKAGES="gimp macsvg krita inkscape"
AUDIO_PACKAGES="audacity reaper sonic-pi pd blackhole-2ch blackhole-64ch musescore sonic-visualiser"
CONMMUNITY_PACKAGES="discord element"
VM_PACKAGES="utm"
MODELING_PACKAGES="blender kicad freecad"
REMOTE_PACKAGES="microsoft-remote-desktop netbird netbird-ui rustdesk"
SELECTED_PACKAGES=$(dialog --checklist "Select brew packages to install:" 20 60 10 \
"BASIC_PACKAGES" "Basic Packages" on \
"IDE_PACKAGES" "IDE Packages" on \
"ADB_PACKAGES" "ADB Packages" on \
"BROWSER_PACKAGES" "Browser Packages" on \
"OFFICE_PACKAGES" "Office Packages" on \
"DOCUMENT_PACKAGES" "Document Packages" on \
"WACOM_PACKAGES" "Wacom Packages" on \
"MEDIA_PACKAGES" "Media Packages" on \
"VIDEO_PACKAGES" "Video Packages" on \
"IMG_PACKAGES" "Image Packages" on \
"AUDIO_PACKAGES" "Audio Packages" on \
"CONMMUNITY_PACKAGES" "Community Packages" on \
"VM_PACKAGES" "VM Packages" on \
"MODELING_PACKAGES" "Modeling Packages" on \
"REMOTE_PACKAGES" "Remote Packages" on \
3>&1 1>&2 2>&3 3>&-)
if [ -z "$SELECTED_PACKAGES" ]; then
echo "No packages selected"
exit 1
fi
brew update
for package in $SELECTED_PACKAGES
do
echo $package
eval "BREW_PACKAGES+=\"${!package}\""
done
}
function setup_shell_prompt(){
CUSTOM_PS1=$(cat $SCRIPT_DIR/share/zsh-ps1-temp)
CUSTOM_PROMPT="\$CUSTOM_PROMPT=$(get_user_input "Enter your custom prompt")"
echo $CUSTOM_PS1>> ~/.zshrc
echo $CUSTOM_PROMPT>> ~/.zshrc
}
function main(){
......
[%T][%n@%m][%~] $CUSTOM_NOTATION
%? ]%# >
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment