summary refs log tree commit diff stats
path: root/zsh/environment.zsh
blob: 080e2344e3d7ce73f2ae087e36bd671564eb47f3 (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
if [[ $defpath == ""  && -d ~/bin ]]
then
	defpath=($path)
	path=(
		$defpath
		~/bin
	)
	if [[ -d ~/.gem/ruby/*/bin ]]
	then
		path=(
			$path
			~/.gem/ruby/*/bin
		)
	fi
fi

export PATH

myfuncs=( ~alan/projects/dotfiles/zsh/functions/*(/) )
fpath=(
	$myfuncs
	~alan/projects/dotfiles/zsh/completion/
	$fpath
)
if [[ -d /usr/local/share/zsh-completions ]]
then
	fpath=(/usr/local/share/zsh-completions $fpath)
fi

export FPATH

case $OSTYPE in
	*gnu*)
		os=gnu
		;;
	freebsd*)
		os=freebsd
		;;
	darwin*)
		os=osx
esac

export os