summaryrefslogtreecommitdiff
path: root/environment
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-04-20 16:10:14 +1200
committerDavid Phillips <david@sighup.nz>2017-04-20 16:10:14 +1200
commitaffa6979c6f45618d3c2eb6ff691158fde09accc (patch)
tree404ae4e87cc1726ec1898cb5786f5c6e1f64bca3 /environment
parent36e1e0b68cf9b3d096a86492f7f82fd13adcf632 (diff)
downloaddotfiles-affa6979c6f45618d3c2eb6ff691158fde09accc.tar.xz
Add missing files
Diffstat (limited to 'environment')
-rw-r--r--environment12
1 files changed, 12 insertions, 0 deletions
diff --git a/environment b/environment
new file mode 100644
index 0000000..1ae64ba
--- /dev/null
+++ b/environment
@@ -0,0 +1,12 @@
+export GPG_TTY=$(tty)
+export EDITOR=/usr/bin/vim
+
+if $(which clang 2>/dev/null); then
+ export CC=clang
+ export CXX=clang
+elif [[ $(which tcc 2>/dev/null) && !$(which gcc 2>/dev/null) ]]; then
+ export CC=tcc
+fi
+
+# u=rwx,g=,o=
+umask 077