mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
refractor(macOS): Better setup script for macOS
This commit is contained in:
parent
1804960bfc
commit
cd7b6c70f0
14 changed files with 538 additions and 311 deletions
34
tools/zsh/zshrc
Normal file
34
tools/zsh/zshrc
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# $DOTFILES/tools/zsh/common.zshrc
|
||||
# Date: 2024-11-30
|
||||
# Author: js0ny
|
||||
# This is the entry point for all zsh configuration files
|
||||
# 这是所有zsh配置文件的入口点
|
||||
|
||||
# Location: $ZDOTDIR/.zshrc (default: $HOME/.zshrc)
|
||||
# Linking:
|
||||
# ln -sf $DOTFILES/tools/zsh/common.zshrc $ZDOTDIR/.zshrc
|
||||
|
||||
export DOTFILES=$HOME/.dotfiles
|
||||
|
||||
case "$(uname)" in
|
||||
Linux)
|
||||
if grep -q Microsoft /proc/version || [[ -n "$WSL_DISTRO_NAME" ]]; then
|
||||
# WSL-specific configuration
|
||||
source "$DOTFILES/platforms/wsl/zshrc"
|
||||
else
|
||||
# Native Linux configuration
|
||||
source "$DOTFILES/platforms/linux/zshrc"
|
||||
fi
|
||||
;;
|
||||
Darwin)
|
||||
# macOS-specific configuration
|
||||
source "$DOTFILES/platforms/mac/zshrc"
|
||||
;;
|
||||
# CYGWIN*|MINGW*|MSYS*)
|
||||
# source "$DOTFILES/platform/wsl.zsh"
|
||||
# ;;
|
||||
esac
|
||||
|
||||
for file in $DOTFILES/tools/zsh/mod/*.zsh; do
|
||||
source $file
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue