]>
Commit | Line | Data |
---|---|---|
f7960c69 | 1 | ### path |
f7960c69 | 2 | # /usr/{pkg,local,games} are unix/bsdisms |
3 | typeset -U path | |
4 | path=({~/,/,/usr/}sbin {~/,/,/usr/}bin /usr/pkg/{s,}bin /usr/X11R{7,6}/bin | |
5 | /usr/local/{s,}bin /usr/games $path) | |
6 | ||
7 | ### posix | |
189288f7 | 8 | export EDITOR=vim |
f7960c69 | 9 | export PAGER=less |
10 | export GREP_OPTIONS=--color=auto | |
11 | export LANG="en_US.UTF-8" | |
12 | export LC_CTYPE="$LANG" | |
13 | ||
14 | ### xdg | |
ac515d99 | 15 | export XDG_CONFIG_HOME=~/etc |
f7960c69 | 16 | export XDG_CONFIG_DIRS=~/.config:/usr/pkg/etc/xdg:/usr/local/etc/xdg:/etc/xdg |
ac515d99 | 17 | export XDG_DATA_HOME=~/share |
7197cc5c | 18 | export XDG_DATA_DIRS=~/.local/share:/usr/pkg/share:/usr/local/share:/usr/share |
ac515d99 | 19 | export XDG_CACHE_HOME=~/tmp |
a568f7fa | 20 | export XDG_RUNTIME_DIR=~/tmp |
189288f7 | 21 | |
f7960c69 | 22 | ### applications |
189288f7 | 23 | export PYTHONSTARTUP=~/.pythonrc |
f4a5f003 | 24 | ## perl |
26b74076 | 25 | (( ${+commands[perl]} )) && eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5) |
ba63cd01 | 26 | |
54ecedc9 | 27 | ### freebsd |
28 | if [[ "$OSTYPE" =~ "^freebsd" ]]; then | |
29 | export CLICOLOR= | |
30 | export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30' | |
31 | fi | |
32 | ||
f7960c69 | 33 | ### load site-specific |
26b74076 | 34 | if [[ -e "~/.zshenv.local" ]] && [[ ! -v _ZSHENV_LOADED ]] { |
35 | export _ZSHENV_LOADED= | |
ba63cd01 | 36 | source ~/.zshenv.local |
a568f7fa | 37 | } |