]> Sergey Matveev's repositories - dotfiles.git/blob - zsh/.zshenv
Autocreate tmux sessions
[dotfiles.git] / zsh / .zshenv
1 # vim: foldmethod=marker:foldlevel=0
2
3 # History {{{
4 HISTFILE=~/secure/.history
5 HISTSIZE=10240
6 SAVEHIST=10240
7 # }}}
8
9 # Terminal {{{
10 export COLORFGBG="default;default;0"
11 export COLORTERM=xterm-256color
12 [ "$TERM" = "screen-256color" ] || TERM=xterm-256color
13 export TERM
14 # }}}
15
16 # Less options {{{
17 export PAGER=less
18 export LESSHISTFILE=/tmp/.lesshst
19 export LESS=RWXij2
20 export LESS=${LESS}"Ps?f%f .?m(%i/%m) .%lt-%lb?L/%L. [%bB?B/%B.]?B %pB\%.?x N\:%x.%t"
21 # }}}
22
23 # ls options {{{
24 export CLICOLOR=1
25 export LSCOLORS=BxGxcxdxCxegDxabagacad
26 # }}}
27
28 # Lynx options {{{
29 export WWW_HOME=file:///home/stargrave/.lynx_bookmarks.html
30 export SSL_CERT_FILE=/usr/local/openssl/cert.pem
31 export LYNX_CFG=~/.lynx.cfg
32 # }}}
33
34 # sdcv options {{{
35 export STARDICT_DATA_DIR=~/dic
36 export SDCV_HISTSIZE=0
37 # }}}
38
39 # IRC options {{{
40 export IRCNAME="Sergey Matveev"
41 export IRCNICK="stargrave"
42 # }}}
43
44 # XDG related junk {{{
45 export XDG_CACHE_HOME=/tmp/stargrave-xdg
46 export XDG_CONFIG_HOME=/tmp/stargrave-xdg
47 export XDG_DATA_HOME=/tmp/stargrave-xdg
48 export XDG_RUNTIME_DIR=/tmp/stargrave-xdg
49 # }}}
50
51 # Paths {{{
52 path=(~/bin ~/local/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /bin /sbin)
53 manpath=(
54     ~/local/share/man
55     /usr/local/lib/perl5/5.26/perl/man
56     /usr/local/lib/perl5/site_perl/man
57     /usr/share/openssl/man
58     /usr/local/share/man
59     /usr/local/man
60     /usr/share/man
61 )
62 export -TU INFOPATH infopath
63 infopath=(~/local/share/info /usr/local/share/info /usr/local/info)
64
65 manpath=(~/src/suckless/tabbed $manpath)
66 path=(~/src/suckless/tabbed $path)
67
68 export -TU PKG_CONFIG_PATH pkg_config_path
69 pkg_config_path=(~/local/lib/pkgconfig ~/local/libdata/pkgconfig)
70 # }}}
71
72 # Python options {{{
73 export PIP_RESPECT_VIRTUALENV=true
74 export PIP_VIRTUALENV_BASE=~/.virtualenvs
75 export VIRTUAL_ENV_DISABLE_PROMPT=1
76 export PYTHONDONTWRITEBYTECODE=1
77 # }}}
78
79 # Go related {{{
80 export GOCACHE=/tmp/go-cache
81 export GOPROXY=off
82 export GOSUMDB=off
83 export GOPATH=~/work/gopath
84 path=($GOPATH/bin ~/work/go/bin $path)
85 # }}}
86
87 # C related {{{
88 cflags=(-I$HOME/local/include -I/usr/local/include -I/usr/local/include/PCSC)
89 ldflags=(-L$HOME/local/lib -L/usr/local/lib)
90 export CFLAGS="${(j: :)cflags}" LDFLAGS="${(j: :)ldflags}"
91 export -TU LD_LIBRARY_PATH ld_library_path
92 ld_library_path=(~/local/lib)
93 # }}}
94
95 # Various {{{
96 export SHELL=/bin/zsh
97 export EDITOR=vim
98 export TZ=Europe/Moscow
99 export IFCONFIG_FORMAT=inet:cidr,inet6:cidr
100 export SSH_AUTH_SOCK=~/.ssh/agent
101 export MAILDIR=~/mail
102 export DBUS_SESSION_BUS_ADDRESS=disabled:
103 export MYSQL_HISTFILE=/tmp/.mysql_history
104 export REDO_JOBS=8 REDO_NO_SYNC=1
105 export SHARNESS_TEST_SRCDIR=~/local/stow/sharness/share/sharness
106 export FZF_DEFAULT_OPTS="--color=16 --info=inline"
107 export AUTOENV_AUTH_FILE=~/.zautoenv-auth
108 export TIMEFMT="user:%U sys:%S mem:%K/%M io:%I/%O %*E"
109 export RLWRAP_HOME=/tmp
110 # }}}