dotfiles/zshenv.zsh
2024-04-08 11:31:08 -05:00

41 lines
1.0 KiB
Bash

export DOCKER_HOST="unix://$XDG_RUNTIME_DIR/docker.sock"
export DOCKER_SOCKET="$XDG_RUNTIME_DIR/docker.sock"
export EDITOR="helix"
export FINDER="sk"
export GPG_TTY=$(tty)
export HELIX_RUNTIME="$HOME/src/helix/runtime"
export NVM_DIR="$HOME/.nvm"
export SKIM_DEFAULT_COMMAND="git ls-tree -r --name-only HEAD || rg --files"
export VISUAL="helix"
fpath+=(~/.zsh/completions)
# Setup cargo
[[ -s ~/.cargo/env ]] && source ~/.cargo/env
# Local gems
if (( $+commands[ruby] )); then
local gem_bin_path="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin"
[[ -d "$gem_bin_path" ]] && path+=("$gem_bin_path")
fi
# Setup go paths
if (( $+commands[go] )); then
local go_bin_path="$(go env GOPATH)/bin"
[[ -d "$go_bin_path" ]] && path+=("$go_bin_path")
fi
if (( $+commands[fd] )); then
export FZF_DEFAULT_COMMAND="fd --type f"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
fi
if (( $+commands[sccache] )); then
export RUSTC_WRAPPER="$(which sccache)"
fi
# Local environment
if [[ -s ~/.zshenv.local ]]; then
source ~/.zshenv.local
fi