]> git.sev.monster Git - dotfiles.git/blame - base/.zprofile
code cleanup, add su support
[dotfiles.git] / base / .zprofile
CommitLineData
b133dc92 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
f11fbf9e 5if [[ -v _backup_path ]] {
b133dc92 6 path=("${_backup_path[@]}" "${path[@]}")
7 export PATH
f11fbf9e 8 unset _backup_path
b133dc92 9}
10## common
81c3957e 11export EDITOR=vim
12export PAGER=less
b133dc92 13## grep
14# XXX: deprecated in GNU
15export GREP_OPTIONS=--color=auto
81c3957e 16## histfile
17export HISTFILE=~/.histfile
18export HISTSIZE=1000
19export SAVEHIST=1000
81c3957e 20## python
21export PYTHONSTARTUP=~/.pythonrc
22## perl
b133dc92 23[[ -v commands[perl] ]] && eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5 2>/dev/null)
24
81c3957e 25### load site-specific
26if [[ -f ~/.zprofile.local ]] { source ~/.zprofile.local }
27
28# vim: set et sts=4 sw=4 ts=8 tw=79 :
This page took 0.036351 seconds and 4 git commands to generate.