summaryrefslogtreecommitdiff
path: root/environment
blob: 9f4a5d32017d97165e1df00068d409fb59aa6580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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

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