lazy/files/zsh/80-env.zsh
2023-11-30 14:23:00 +08:00

30 lines
624 B
Bash

# Pip3
if [ -d "$HOME/.local/bin" ]; then
export PATH=$PATH:$HOME/.local/bin
command_exists trash-put && alias rm='trash-put'
fi
# Docker Rootless
if [ -f "$HOME/.config/systemd/user/docker.service" ]; then
export DOCKER_HOST=unix:///run/user/$(id -u)/docker.sock
fi
# Golang
if [ -f "/usr/local/go/bin/go" ]; then
export PATH=$PATH:/usr/local/go/bin
fi
if [ -f "$HOME/.local/go/bin/go" ]; then
export PATH=$PATH:$HOME/.local/go/bin
fi
# Yarn
if [ -d "$HOME/.yarn" ]; then
export PATH=$PATH:$HOME/.yarn/bin
fi
# WSL1
if grep -q Microsoft /proc/version; then
# Xming
export DISPLAY=:0;
fi