mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chezmoi: zsh, starship
This commit is contained in:
parent
0051a163c3
commit
2cbf244d7b
17 changed files with 0 additions and 1102 deletions
23
dot_config/zsh/global.zshenv
Normal file
23
dot_config/zsh/global.zshenv
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# $DOTFILES/tools/zsh/global.zshenv
|
||||
# Date: 2024-11-30
|
||||
# Author: js0ny
|
||||
# $DOTFILES/tools/zsh/global.zshenv
|
||||
# system-wide zshenv file 系统级别的 zshenv 文件,用于设置全局环境变量
|
||||
|
||||
# Location:
|
||||
# /etc/zshenv: (macOS and some distro)
|
||||
# /etc/zsh/zshenv: (some distro)
|
||||
# Linking:
|
||||
# sudo cp $DOTFILES/tools/zsh/global.zshenv /etc/zshenv # or /etc/zsh/zshenv
|
||||
|
||||
# Set ZDOTDIR to $HOME/.config/zsh if it exists
|
||||
# This allows us to keep our zsh configuration in $HOME/.config/zsh
|
||||
# and zshenv will be located at $HOME/.config/zsh/.zshenv instead of
|
||||
# $HOME/.zshenv
|
||||
# 如果存在 $HOME/.config/zsh 目录,则将 ZDOTDIR 设置为 $HOME/.config/zsh
|
||||
# 防止 .zshenv 文件自动生成在用户目录下
|
||||
|
||||
# Ensure SPACE between [ and -d and ]
|
||||
if [ -d $HOME/.config/zsh ]; then
|
||||
export ZDOTDIR=$HOME/.config/zsh
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue