lazy/files/zsh/80-env.zsh

28 lines
555 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
if [ -f "~/.config/systemd/user/docker.service" ]; then
export DOCKER_HOST=unix:///run/user/$(id -u)/docker.sock
fi
# Golang
if command_exists go; then
export PATH=$PATH:/usr/local/go/bin
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