forked from deiga/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzprofile
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
#!/usr/bin/bash
# vim syn=zsh
#echo 'zprofile' $0 # Debug
#setopt xtrace # Trace
#setopt promptsubst
#typeset -F SECONDS
#PS4='+{$SECONDS}%N:%i> '
# Locale settings
export LANG="en_GB.UTF-8"
export LC_ALL="en_GB.UTF-8"
# Customize to your needs...
BIN_PATH="$HOME/bin:$HOME/local/bin" # Add ~/bin to PATH
CABAL_PATH="$HOME/.cabal/bin"
STACK_INSTALL_PATH="$HOME/.local/bin/"
PYTHON_BIN_PATH="$HOME/Library/Python/3.7/bin"
KREW_PATH="${KREW_ROOT:-$HOME/.krew}/bin"
PATH=$CABAL_PATH:$STACK_INSTALL_PATH:$PYTHON_BIN_PATH:$BIN_PATH:$KREW_PATH:$PATH
PATH="$HOME/.poetry/bin:$PATH"
case $OSTYPE in
darwin*)
PYTHON_HOMEBREW_PATH=/usr/local/opt/python/libexec/bin
COREUTILS_PATH=/usr/local/opt/coreutils/libexec/gnubin
HOMEBREW_PATH=/usr/local/sbin:/usr/local/bin
PATH=$COREUTILS_PATH:$PYTHON_HOMEBREW_PATH:$HOMEBREW_PATH:$PATH
# PATH=$PYTHON_HOMEBREW_PATH:$HOMEBREW_PATH:$PATH
export ARCHFLAGS="-arch x86_64"
export JAVA_HOME
JAVA_HOME=$(/usr/libexec/java_home)
export SCALA_HOME=/usr/local/opt/scala
;;
*) ;;
esac
typeset -U PATH
export PATH
if type fasd >/dev/null; then eval "$(fasd --init auto)"; fi
if type thefuck >/dev/null; then eval "$(thefuck --alias)"; fi