summaryrefslogtreecommitdiff
path: root/environment
blob: 44c9e6754e44ef4d46f82e381ac85bc95c1235da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

export GPG_TTY=$(tty)
export EDITOR=/usr/bin/vim

if hash clang 2>/dev/null; then
	export CC=clang
	export CXX=clang++
elif hash gcc 2>/dev/null ; then
	export CC=gcc
	export CXX=g++
elif hash tcc 2>/dev/null ; then
	export CC=tcc
fi

# Do separate paths on '/' for word operations like ^W
WORDCHARS=${WORDCHARS/\//}

# u=rwx,g=,o=
umask 077