]> git.sev.monster Git - dotfiles.git/blame - base/.zprofile
more gpg stuff
[dotfiles.git] / base / .zprofile
CommitLineData
8eb81f95 1### general exports
2export EDITOR=vim
3export PAGER=less
4## lang
5export CHARSET=UTF-8
6export LANG="en_US.UTF-8"
7export LC_CTYPE="$LANG"
8## histfile
9export HISTFILE=~/.histfile
10export HISTSIZE=1000
11export SAVEHIST=1000
12## path
13# /usr/{pkg,local,games} are unix/bsdisms
14typeset -U PATH path
15path=({~/,/,/usr/}sbin {~/,/,/usr/}bin /usr/pkg/{s,}bin /usr/X11R{7,6}/bin
16 /usr/local/{s,}bin /usr/games "${path[@]}")
17export PATH
18typeset -U FPATH fpath
19fpath=(~/.zsh/functions/Prompts "${fpath[@]}")
20export FPATH
dcac60d9 21
8eb81f95 22### applications
23## python
24export PYTHONSTARTUP=~/.pythonrc
25## perl
26(( ${+commands[perl]} )) && eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5 2>/dev/null)
27## gpg
28if (( ${+commands[gpg]} )) {
29 # SSH_AUTH_SOCK should be set in a remote SSH session for passthrough
30 # if it isn't, we are likely the first login shell on the local machine
31 if [[ ! -v SSH_AUTH_SOCK ]] {
32 export GPG_TTY=$(tty)
33 gpg-connect-agent UPDATESTARTUPTTY /bye >/dev/null
34 export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
35 }
36}
37## xdg
38export XDG_CONFIG_HOME=~/etc
39export XDG_CONFIG_DIRS=~/.config:/usr/pkg/etc/xdg:/usr/local/etc/xdg:/etc/xdg
40export XDG_DATA_HOME=~/share
41export XDG_DATA_DIRS=~/.local/share:/usr/pkg/share:/usr/local/share:/usr/share
42export XDG_CACHE_HOME=~/tmp
43export XDG_RUNTIME_DIR=~/tmp
44## grep
45# XXX: deprecated in GNU
46export GREP_OPTIONS=--color=auto
47
48### tmp
71722092 49t="${TMPDIR:-/tmp}/home-$LOGNAME"
dcac60d9 50h="$HOME/tmp"
51if [[ ! -e "$t" ]] {
8eb81f95 52 mkdir -m 700 "$t" > /dev/null 2>&1
53 #TODO: check if dir exists after mkdir
dcac60d9 54}
8eb81f95 55#allow opaque entries to override link creation
dcac60d9 56if [[ ! -e "$h" ]] {
8eb81f95 57 ln -sf "$t" "$h" > /dev/null 2>&1
dcac60d9 58}
186423fe 59unset t
60unset h
8eb81f95 61
62### load site-specific
63if [[ -f ~/.zprofile.local ]] { source ~/.zprofile.local }
64
65# vim: set et sts=4 sw=4 ts=8 tw=79 :
This page took 0.035245 seconds and 4 git commands to generate.