-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshenv
81 lines (65 loc) · 2.52 KB
/
.zshenv
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# This file is a part of Dotfiles project
#
# Copyright (C) 2013-2023, Alexander Kurbatov <[email protected]>
#
# Dotfiles is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Dotfiles is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Purpose:
# Set global environment variables for zsh.
# Set up locale (requred by some tools)
export LANG=ru_RU.UTF-8
export LC_CTYPE=ru_RU.UTF-8
export LC_ALL=ru_RU.UTF-8
# Github parameters
export GITHUB_USER=alkurbatov
# Go stuff
export GOPATH=$HOME/work
export GOBIN=$GOPATH/bin
# Preferred editor for local and remote sessions
export EDITOR="emacs -nw"
export VISUAL=emacs
export SVN_EDITOR="emacs -nw"
if [[ "$OSTYPE" = darwin* ]]; then
# X11 display for forwarding
export DISPLAY=:0
HOMEBREW_PREFIX=/usr/local
if [[ $(/usr/bin/uname -m) == 'arm64' ]]; then
HOMEBREW_PREFIX=/opt/homebrew
fi
# Force usage of OpenSSL from Homebrew.
# You may also need to add -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl to cmake
# to properly find the library and headers.
export LDFLAGS="-L$HOMEBREW_PREFIX/opt/openssl/lib"
export CPPFLAGS="-I$HOMEBREW_PREFIX/opt/openssl/include"
export CFLAGS="-I$(xcrun --show-sdk-path)/usr/include"
export PKG_CONFIG_PATH="$HOMEBREW_PREFIX/opt/openssl/lib/pkgconfig"
# Disables statistics that brew collects
export HOMEBREW_NO_ANALYTICS=1
fi
if [[ "$OSTYPE" = linux* ]]; then
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
if [ -n "${SSH_CLIENT}" ]; then
# Support ssh auth in docker builds when logged in from remote machine
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/keyring/ssh"
fi
fi
# Tell GPG which tty it should use
export GPG_TTY=$(tty)
# Suppress annoying 'use docker scan' suggestion
export DOCKER_SCAN_SUGGEST=false
# Show full log during docker build
export BUILDKIT_PROGRESS=plain
# Enable true color support in terminal for proper colors in Emacs
export COLORTERM=truecolor
# Always store dependencies in local environments
export POETRY_VIRTUALENVS_IN_PROJECT=true