]> git.sev.monster Git - dotfiles.git/blame - base/.zshenv
add git pr alias for github pull request checkout
[dotfiles.git] / base / .zshenv
CommitLineData
ff1a2414 1### path
ff1a2414 2# /usr/{pkg,local,games} are unix/bsdisms
3typeset -U path
4path=({~/,/,/usr/}sbin {~/,/,/usr/}bin /usr/pkg/{s,}bin /usr/X11R{7,6}/bin
5 /usr/local/{s,}bin /usr/games $path)
6
7### posix
1b8a4102 8export EDITOR=vim
ff1a2414 9export PAGER=less
10export GREP_OPTIONS=--color=auto
11export LANG="en_US.UTF-8"
12export LC_CTYPE="$LANG"
13
14### xdg
452d22eb 15export XDG_CONFIG_HOME=~/etc
ff1a2414 16export XDG_CONFIG_DIRS=~/.config:/usr/pkg/etc/xdg:/usr/local/etc/xdg:/etc/xdg
452d22eb 17export XDG_DATA_HOME=~/share
8720834f 18export XDG_DATA_DIRS=~/.local/share:/usr/pkg/share:/usr/local/share:/usr/share
452d22eb 19export XDG_CACHE_HOME=~/tmp
dcac60d9 20export XDG_RUNTIME_DIR=~/tmp
1b8a4102 21
ff1a2414 22### applications
1b8a4102 23export PYTHONSTARTUP=~/.pythonrc
116467fd 24## perl
7d19d0fd 25(( ${+commands[perl]} )) && eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5)
372276b7 26## gpg
0176bb95 27if (( ${+commands[gpg]} )) {
b0ce3f6d 28 export GPG_TTY=$(tty)
29 if [[ ! -v SSH_AUTH_SOCK ]] {
30 # set up SSH auth socket and start GPG agent
31 export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
32 }
33 gpg-connect-agent updatestartuptty /bye >/dev/null
372276b7 34}
d877aef2 35
428dfc35 36### freebsd
372276b7 37if [[ "$OSTYPE" =~ "^freebsd" ]] {
428dfc35 38 export CLICOLOR=
39 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'
372276b7 40}
428dfc35 41
ff1a2414 42### load site-specific
372276b7 43if [[ -f ~/.zshenv.local ]] && [[ ! -v _ZSHENV_LOADED ]] {
7d19d0fd 44 export _ZSHENV_LOADED=
d877aef2 45 source ~/.zshenv.local
dcac60d9 46}
This page took 0.043915 seconds and 4 git commands to generate.