-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshenv
77 lines (70 loc) · 2.36 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
export DEVDIR=$HOME/Development
export TERMCONF=$HOME/.term-config
export ITERM_INT=false
export GPG_TTY=$(tty)
export GPG_KEY=9073DEB608346BA4
export GNUPGHOME=${HOME}/.gnupg
export NERD_FONT=true
export NF=true
export POWERLINE_SAFE=true
export PATH=$HOME/.local/bin:$PATH
export XDG_CONFIG_HOME=$HOME/.config
if [[ $XDG_SESSION_TYPE == 'wayland' ]]; then
export CHROME_FLAGS='--enable-features=UseOzonePlatform --ozone-platform=wayland'
export CHROMIUM_FLAGS='--enable-features=UseOzonePlatform --ozone-platform=wayland'
export ELECTRON_FLAGS='--enable-features=UseOzonePlatform --ozone-platform=wayland'
export ELECTRON12_FLAGS='--enable-features=UseOzonePlatform --ozone-platform=wayland'
fi
if [[ -v WSLENV ]]; then
if [[ "$TERM_PROG" == "winterm" ]]; then
export NF_SAFE=true
export POWERLINE_SAFE=true
elif [[ $WSLENV == "WT_SESSION::WT_PROFILE_ID" ]]; then
export NF_SAFE=true
export POWERLINE_SAFE=true
else
export NF_SAFE=false
export POWERLINE_SAFE=false
fi
else
if [[ "$TERM" == "linux" && -z $DISPLAY ]]; then
export TERM_PROG='linux_console'
export NF_SAFE=false
export POWERLINE_SAFE=true
elif [[ $TERM_PROG == 'linux_console' ]]; then
export NF_SAFE=false
export POWERLINE_SAFE=true
else
export NF_SAFE=true
export POWERLINE_SAFE=true
fi
fi
# Setup homebrew on the mac
if [[ $(uname) == "Darwin" ]]; then
eval $(/opt/homebrew/bin/brew shellenv)
# Build MacOS Path
export PATH="/Library/Frameworks/Python.framework/Versions/3.10/bin:${PATH}"
fi
export TMUX_INTEGRATION=true
# Uncomment to stop TMUX from running at startup
export RUN=false
# Bug in pip3 means it looks for a keyring
# if it queries kwallet and no keyring exists
# it prompts kwallet to create one. This envvar
# stops that from happening.
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
# HiDPI Settings for GTK Apps doesn't work well with
# KDE Plasma HiDPI Scalling.
# export GDK_DPI_SCALE=1.75
# export GDK_SCALE=1.75
if [[ $(uname) == "Darwin" ]]; then
export PAGER=/opt/homebrew/bin/bat
export EDITOR=/opt/homebrew/bin/nvim
else
export PAGER=/usr/bin/bat
export EDITOR=/usr/bin/nvim
fi
# Source local environment variables to over ride
# any of the envars defined here.
source ~/.term-config/zshenv.local
. "$HOME/.cargo/env"