]>
Commit | Line | Data |
---|---|---|
d569f3f7 | 1 | ### exports |
2 | ## reset PATH to prevent /etc/zprofile from changing it | |
3 | # some distros put non-interactive PATH in env and interactive PATH in profile; | |
4 | # we want to make sure to always use ours regardless | |
c3608beb | 5 | if [[ -v _backup_path ]] { |
d569f3f7 | 6 | path=("${_backup_path[@]}" "${path[@]}") |
7 | export PATH | |
c3608beb | 8 | unset _backup_path |
d569f3f7 | 9 | } |
10 | ## common | |
8eb81f95 | 11 | export EDITOR=vim |
12 | export PAGER=less | |
d569f3f7 | 13 | ## grep |
14 | # XXX: deprecated in GNU | |
15 | export GREP_OPTIONS=--color=auto | |
8eb81f95 | 16 | ## histfile |
17 | export HISTFILE=~/.histfile | |
18 | export HISTSIZE=1000 | |
19 | export SAVEHIST=1000 | |
8eb81f95 | 20 | ## python |
21 | export PYTHONSTARTUP=~/.pythonrc | |
22 | ## perl | |
d569f3f7 | 23 | [[ -v commands[perl] ]] && eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5 2>/dev/null) |
24 | ||
8eb81f95 | 25 | ### load site-specific |
26 | if [[ -f ~/.zprofile.local ]] { source ~/.zprofile.local } | |
27 | ||
28 | # vim: set et sts=4 sw=4 ts=8 tw=79 : |