-
Notifications
You must be signed in to change notification settings - Fork 1
/
zprofile
executable file
·42 lines (36 loc) · 1.16 KB
/
zprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# vim syn=zsh
#echo 'zprofile' $0 # Debug
# zmodload zsh/zprof
# Locale settings
if [[ -z "$LANG" ]]; then
export LANG="en_GB.UTF-8"
export LANGUAGE="en_GB.UTF-8"
fi
export LC_COLLATE="en_GB.UTF-8"
export LC_CTYPE="en_GB.UTF-8"
export LC_MESSAGES="en_GB.UTF-8"
export LC_MONETARY="en_GB.UTF-8"
export LC_NUMERIC="en_GB.UTF-8"
export LC_TIME="en_GB.UTF-8"
export LC_ALL="en_GB.UTF-8"
export LESSCHARSET=utf-8
# Customize to your needs...
BIN_PATH="$HOME/bin:$HOME/local/bin" # Add ~/bin to PATH
CABAL_PATH="$HOME/.cabal/bin" # Add cabal binaries to PATH
STACK_INSTALL_PATH="$HOME/.local/bin/"
KREW_PATH="${KREW_ROOT:-$HOME/.krew}/bin" # Add krew to PATH
GOBIN="$HOME/go/bin" # Adds binaries installed with `go install` to PATH
PATH=$CABAL_PATH:$STACK_INSTALL_PATH:$BIN_PATH:$KREW_PATH:$GOBIN:$PATH
PATH="$HOME/.poetry/bin:$PATH"
case $OSTYPE in
darwin*)
COREUTILS_PATH=$BREW_PREFIX/opt/coreutils/libexec/gnubin
PATH=$COREUTILS_PATH:$PATH
[ -x $BREW_PREFIX/bin/brew ] && eval "$($BREW_PREFIX/bin/brew shellenv)"
export ARCHFLAGS="-arch x86_64"
;;
*) ;;
esac
# eliminates duplicates in *paths
typeset -gU PATH cdpath fpath path
export PATH