mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
32 lines
837 B
Bash
32 lines
837 B
Bash
# $DOTFILES/platforms/wsl/zshrc
|
||
# Date: 2024-12-01
|
||
# Author: js0ny
|
||
# Sourced by user's zshrc if is WSL 在用户的 zshrc 中被引用,WSL 特定配置
|
||
# Entry point in $DOTFILES/tools/zsh/common.zshrc (入口点)
|
||
|
||
### Variables ###
|
||
export IS_WSL=true
|
||
export ARCHFLAGS="-arch x86_64"
|
||
source $DOTFILES/platforms/wsl/winterop.zsh
|
||
|
||
|
||
### Misc ###
|
||
|
||
export PATH=/opt/bin:$PATH
|
||
|
||
# Conda #
|
||
|
||
# >>> conda initialize >>>
|
||
# !! Contents within this block are managed by 'conda init' !!
|
||
__conda_setup="$('$HOME/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
||
if [ $? -eq 0 ]; then
|
||
eval "$__conda_setup"
|
||
else
|
||
if [ -f "$HOME/miniconda3/etc/profile.d/conda.sh" ]; then
|
||
. "$HOME/miniconda3/etc/profile.d/conda.sh"
|
||
else
|
||
export PATH="$HOME/miniconda3/bin:$PATH"
|
||
fi
|
||
fi
|
||
unset __conda_setup
|
||
# <<< conda initialize <<<
|