summaryrefslogtreecommitdiff
path: root/etc/parameters
blob: 1d097f6430d5c54e6648d68a50cedcb6f59594fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
## vim:ft=zsh
## parameters which are only important for interactive shells.
## For application-related parameters, see zshenv

# zsh cache directory
if [[ -d ~/var/cache/zsh ]] {
	ZCACHEDIR=~/var/cache/zsh
} else {
	zrc_info "~/var/cache/zsh does not exist, using ~/.zsh-cache instead"
	mkdir -p ~/.zsh-cache
	ZCACHEDIR=~/.zsh-cache
}

# There's no point in having more history than what can be saved on disk
HISTFILE=$ZCACHEDIR/history
HISTSIZE=50000
SAVEHIST=$HISTSIZE

# how many entries to keep for popd
DIRSTACKSIZE=20

# Use the full terminal size for listings
LISTMAX=0

# be accurate
TIMEFMT='%J (%P)  -  %*E real, %*U user, %*S system'

# completion cache for compinit
compdump=$ZCACHEDIR/compdump

if ((EUID)) {
	path+=(/sbin /usr/sbin /usr/local/sbin)
}

export MAKEFLAGS=j$(grep -c '^processor' /proc/cpuinfo)

# Add my own executables, if they're not already in the path
[[ $path[1] = $HOME/bin ]] || export PATH=$HOME/bin:$PATH

# Add manuals from pkg to manpath
which manpath &> /dev/null && [[ -z $MANPATH ]] && export MANPATH=$(manpath):$HOME/packages/.collected/man

openbsd: export PKG_PATH="ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/:ftp://openbsd.ftp.fu-berlin.de/pub/OpenBSD/`uname -r`/packages/`machine -a`/"