mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
chezmoi: reorganise repo
This commit is contained in:
parent
b391e03c87
commit
67a78879db
278 changed files with 102 additions and 182 deletions
|
|
@ -1,44 +0,0 @@
|
|||
# $DOTFILES/tools/zsh/common.zshrc
|
||||
# vim:ft=zsh
|
||||
# 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
|
||||
export IS_WSL=true
|
||||
source $DOTFILES/platforms/wsl/winterop.zsh
|
||||
else
|
||||
# Native Linux configuration
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
alias clip="wl-copy"
|
||||
alias paste="wl-paste"
|
||||
elif [ -n "$DISPLAY" ]; then
|
||||
alias clip="xclip"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
Darwin)
|
||||
# macOS-specific configuration
|
||||
alias clip="pbcopy"
|
||||
alias paste="pbpaste"
|
||||
;;
|
||||
# CYGWIN*|MINGW*|MSYS*)
|
||||
# source "$DOTFILES/platform/wsl.zsh"
|
||||
# ;;
|
||||
esac
|
||||
|
||||
for file in $DOTFILES/tools/zsh/mod/*.zsh; do
|
||||
source $file
|
||||
done
|
||||
|
||||
[ -f "/home/js0ny/.local/share/ghcup/env" ] && . "/home/js0ny/.local/share/ghcup/env" # ghcup-env
|
||||
Loading…
Add table
Add a link
Reference in a new issue