mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
chezmoi: systemd
This commit is contained in:
parent
a891f968f8
commit
b391e03c87
9 changed files with 40 additions and 57 deletions
|
|
@ -1,4 +1,5 @@
|
|||
# $DOTFILES/tools/zsh/common.zshrc
|
||||
# vim:ft=zsh
|
||||
# Date: 2024-11-30
|
||||
# Author: js0ny
|
||||
# This is the entry point for all zsh configuration files
|
||||
|
|
@ -14,15 +15,22 @@ case "$(uname)" in
|
|||
Linux)
|
||||
if grep -q Microsoft /proc/version || [[ -n "$WSL_DISTRO_NAME" ]]; then
|
||||
# WSL-specific configuration
|
||||
source "$DOTFILES/platforms/wsl/zshrc"
|
||||
export IS_WSL=true
|
||||
source $DOTFILES/platforms/wsl/winterop.zsh
|
||||
else
|
||||
# Native Linux configuration
|
||||
source "$DOTFILES/platforms/linux/zshrc"
|
||||
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
|
||||
source "$DOTFILES/platforms/mac/zshrc"
|
||||
alias clip="pbcopy"
|
||||
alias paste="pbpaste"
|
||||
;;
|
||||
# CYGWIN*|MINGW*|MSYS*)
|
||||
# source "$DOTFILES/platform/wsl.zsh"
|
||||
|
|
@ -34,4 +42,3 @@ for file in $DOTFILES/tools/zsh/mod/*.zsh; do
|
|||
done
|
||||
|
||||
[ -f "/home/js0ny/.local/share/ghcup/env" ] && . "/home/js0ny/.local/share/ghcup/env" # ghcup-env
|
||||
. "/home/js0ny/.deno/env"
|
||||
Loading…
Add table
Add a link
Reference in a new issue