1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-12-22 16:48:13 +00:00
dotfiles/zsh/.zshenv

58 lines
1.1 KiB
Plaintext
Raw Normal View History

# `.zshenv' is sourced on all invocations of the shell, unless the -f option is set.
# It should contain commands to set the command search path, plus other important environment variables.
# `.zshenv' should not contain commands that produce output or assume the shell is attached to a tty.
#
# Browser
#
if [[ "$OSTYPE" == darwin* ]]; then
export BROWSER='open'
fi
#
# Editors
#
export EDITOR='vim'
2020-12-28 11:54:24 +00:00
export VISUAL="$(command -v myemacs) -t"
export ALTERNATE_EDITOR=""
2020-12-28 11:54:24 +00:00
export TERMCMD='i3-sensible-terminal'
2020-12-28 11:54:24 +00:00
#
# Language
#
if [[ -z "$LANG" ]]; then
export LANG='en_US.UTF-8'
fi
#
# Paths
#
# Ensure path arrays do not contain duplicates.
typeset -gU cdpath fpath mailpath path
# Set the the list of directories that cd searches.
# cdpath=(
# $cdpath
# )
# Set the list of directories that Zsh searches for programs.
path=(
/usr/local/{bin,sbin}
~/.bin
~/.local/{bin,sbin}
$path
)
export PATH
export GOPATH=$HOME/go
2020-04-13 13:35:39 +00:00
export PATH=$PATH:$GOPATH/bin/:$HOME/.npm/bin
2020-12-28 11:54:24 +00:00
export WASMTIME_HOME="$HOME/.wasmtime"
export PATH="$WASMTIME_HOME/bin:$PATH"
2021-09-15 13:46:56 +00:00
. "$HOME/.cargo/env"