-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.zshenv
More file actions
executable file
·100 lines (69 loc) · 2.43 KB
/
.zshenv
File metadata and controls
executable file
·100 lines (69 loc) · 2.43 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/zsh
# {{{ xdg
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
# export LD_LIBRARY_PATH="/usr/lib/"
# managing zsh dot directory
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export PATH=$PATH:$HOME/.local/share/bin:$HOME/.local/bin:$HOME/.nix-profile/bin:/opt/cuda/bin:$HOME/.cargo/bin
# }}}
# {{{ language
export LANG=en_US.UTF-8
# Fixes weird WSL symbols
# https://github.com/microsoft/WSL/issues/4446
export LESSCHARSET="utf-8"
# }}}
# {{{ typeset
# read more at:
# * linux-mag.com/id/1079/
# * zsh.sourceforge.net/Guide/zshguide03.html
# preserve just only unique path entries
typeset -U path
typeset -TU SBT_OPTS sbt_opts " "
sbt_opts=("-Xmx4096M"\
"-XX:MaxPermSize=4G")
typeset -TU _JAVA_OPTIONS java_opts " "
java_opts=("-XX:+OptimizeStringConcat" \
"-XX:+CMSClassUnloadingEnabled" \
"-XX:+UseConcMarkSweepGC" \
"-XX:+AggressiveOpts" \
"-XX:+UseBiasedLocking" \
"-XX:+DisableExplicitGC " \
"-XX:+HeapDumpOnOutOfMemoryError" \
"-XX:MaxJavaStackTraceDepth=-1" \
"-Xquickstart" \
# don't keep my intellij file history
"-DlocalHistory.daysToKeep=0" \
"-Dawt.useSystemAAFontSettings=lcd" \
"-Dsun.java2d.xrender=true" \
"-Dsun.io.useCanonCaches=false" \
"-Djava.net.preferIPv4Stack=true" \
"-ea")
# }}}
# {{{ identity
export EDITOR="nvim"
export VISUAL=$EDITOR
export PAGER="moor"
export BROWSER="chromium"
export EMAIL="seroperson@gmail.com"
# }}}
# {{{ other
export NIX_CONFIG="extra-experimental-features = nix-command flakes"
# don't create .lesshst
export LESSHISTFILE=-
# awesomewm filled window fix
export _JAVA_AWT_WM_NONREPARENTING=1
# JDK17 sbt warning fix
export JDK_JAVA_OPTIONS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
# 'ls' coloring
export LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:"
# Enabling LSP for claude-code
export ENABLE_LSP_TOOL=1
# }}}
# {{{ machine-based
[ -f "$ZDOTDIR/machine-based.zshenv" ] && source "$ZDOTDIR/machine-based.zshenv"
# }}}
# {{{ proxy
[ -f "$ZDOTDIR/proxy.zsh" ] && source "$ZDOTDIR/proxy.zsh"
# }}}