sync: from Mac

This commit is contained in:
js0ny 2024-11-25 21:15:47 +00:00
parent 74f2883139
commit 64352ba17b
2 changed files with 18 additions and 13 deletions

View file

@ -12,7 +12,6 @@ export ARCHFLAGS="-arch arm64"
### Navigation ### ### Navigation ###
# Absolute navigation # Absolute navigation
alias doku="cd ~/doku && ls" alias doku="cd ~/doku && ls"
alias dotfiles="cd $DOTFILES && ls"
alias docs="cd ~/Documents" alias docs="cd ~/Documents"
alias dt="cd ~/Desktop" alias dt="cd ~/Desktop"
alias down="cd ~/Downloads" alias down="cd ~/Downloads"
@ -42,3 +41,8 @@ path=('$HOME/.juliaup/bin' $path)
export PATH export PATH
# <<< juliaup initialize <<< # <<< juliaup initialize <<<
# macOS #
alias xclip="pbcopy"
alias clip="pbcopy"

View file

@ -6,12 +6,12 @@
echo "Running the setup script" echo "Running the setup script"
# Xcode Command Line Tools # Xcode Command Line Tools
echo "[INFO] Installing Xcode Command Line Tools" echo "[INFO] Installing Xcode Command Line Tools"
echo "[ACTION] Request Human Takeover" echo "[ACTION] Request Human Takeover"
xcode-select --install xcode-select --install
# System Preferences # System Preferences
# Installation Sources # Installation Sources
echo "[INFO] Setting Installation Sources" echo "[INFO] Setting Installation Sources"
# sudo spctl --master-disable # sudo spctl --master-disable
@ -29,10 +29,10 @@ defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Docu
defaults write com.apple.finder _FXSortFoldersFirst -bool true defaults write com.apple.finder _FXSortFoldersFirst -bool true
defaults write com.apple.finder FinderSpawnTab -bool true defaults write com.apple.finder FinderSpawnTab -bool true
# Don't show External Hard Drives on Desktop # Don't show External Hard Drives on Desktop
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowMountedServersOnDesktop -bool false defaults write com.apple.finder ShowMountedServersOnDesktop -bool false
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false
# No DS_Store on Network # No DS_Store on Network
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Keyboard # Keyboard
@ -45,7 +45,7 @@ echo "[INFO] Setting Dock Preferences"
defaults write com.apple.dock persistent-apps -array defaults write com.apple.dock persistent-apps -array
defaults write com.apple.dock persistent-others -array defaults write com.apple.dock persistent-others -array
defaults write com.apple.dock autohide -bool true # Autohide Dock defaults write com.apple.dock autohide -bool true # Autohide Dock
defaults write com.apple.dock autohide-time-modifier -float 0.5 defaults write com.apple.dock autohide-time-modifier -float 0.5
defaults write com.apple.dock autohide-delay -float 0 # Immediately Autohide Dock defaults write com.apple.dock autohide-delay -float 0 # Immediately Autohide Dock
defaults write com.apple.dock show-recents -bool false # Hide Recent Applications defaults write com.apple.dock show-recents -bool false # Hide Recent Applications
killall Dock killall Dock
@ -118,7 +118,7 @@ brew install --formula lazygit
# Shell # Shell
brew install --formula starship # Shell Prompt brew install --formula starship # Shell Prompt
brew install --formula tmux brew install --formula tmux
brew install --formula zellij brew install --formula zellij
# System Info # System Info
brew install --formula fastfetch # 這輩子有了 brew install --formula fastfetch # 這輩子有了
# Utilities # Utilities
@ -176,6 +176,7 @@ brew install --cask iina
# Security # Security
brew install --cask keyguard brew install --cask keyguard
brew install --cask protonmail-bridge
# Engineering # Engineering
brew install --cask ltspice # `sudo` brew install --cask ltspice # `sudo`
@ -205,9 +206,9 @@ brew install --cask betterdisplay
brew install --cask karabiner-elements # Keyboard Customization brew install --cask karabiner-elements # Keyboard Customization
brew install --cask scroll-reverser # Let Trackpad and Mouse Scroll in the Same Direction like Windows brew install --cask scroll-reverser # Let Trackpad and Mouse Scroll in the Same Direction like Windows
# brew install --cask orbstack # VM # brew install --cask orbstack # VM
# brew install --cask docker # brew install --cask docker
brew install --cask clash-verge-rev brew install --cask clash-verge-rev
brew install --cask chatbox # LLM API Caller brew install --cask chatbox # LLM API Caller
brew install --cask follow # RSS Reader brew install --cask follow # RSS Reader
@ -220,7 +221,7 @@ mas install 451108668 # QQ
curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install | bash curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install | bash
# Set default apps (duti) # Set default apps (duti)
# The id of the app can be found by running # The id of the app can be found by running
# `osascript -e 'id of app "AppName"'` # `osascript -e 'id of app "AppName"'`
brew install --formula duti brew install --formula duti
echo "[INFO] Setting Default Apps" echo "[INFO] Setting Default Apps"
@ -285,4 +286,4 @@ mkdir -p $DOTFILES/powershell_private
mkdir -p ~/Documents/Source/Forks mkdir -p ~/Documents/Source/Forks
mkdir -p ~/Documents/Source/Projects mkdir -p ~/Documents/Source/Projects
mkdir -p ~/Documents/Source/Scripts mkdir -p ~/Documents/Source/Scripts
mkdir -p ~/Documents/Source/Tutorials mkdir -p ~/Documents/Source/Tutorials