aboutsummaryrefslogtreecommitdiff
path: root/.environment
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2019-06-24 00:00:15 -0700
committerRaúl Benencia <rul@kalgan.cc>2019-06-24 00:01:34 -0700
commit88fd5bed96899f99f425773f439852b4e690510c (patch)
tree9c94be1fd6a7611a53aef952e23cb714787ef249 /.environment
parent284c8327c95bb0c71b111ebf95723a35a478295c (diff)
Add .bashrc and related
Diffstat (limited to '.environment')
-rw-r--r--.environment42
1 files changed, 42 insertions, 0 deletions
diff --git a/.environment b/.environment
new file mode 100644
index 0000000..03ffd61
--- /dev/null
+++ b/.environment
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Global environment file. Sourced at shell start and X start.
+# Keep it simple and POSIX
+
+# Select an editor.
+if [ -x "`which emacsclient`" ]; then
+ export EDITOR="emacsclient -c --alternate-editor=vi"
+else
+ export EDITOR=vi
+fi
+
+if [ -x "`which lesspipe`" ]; then
+ eval `lesspipe`
+fi
+
+# Set COLORTERM for slang programs if this is a color terminal
+if [ "$TERM" = "xterm" -o "$TERM" = "linux" -o "$TERM" = "kitty" ]; then
+ export COLORTERM=y
+fi
+
+# Debian settings.
+export DEBEMAIL=rul@kalgan.cc
+export DEBFULLNAME="Raúl Benencia"
+
+# Use $HOME/tmp when possible, out of general paranoia.
+# So many programs have /tmp symlink races...
+TMPDIR=$HOME/tmp
+export TMPDIR
+
+TMP=$HOME/tmp
+export TMP
+
+export GOPATH=$HOME/src/go
+PATH="$GOPATH/bin:$PATH"
+
+GEM=~/.gem/ruby/2.3.0/bin/
+# set PATH so it includes user's private bin if it exists
+if [ -d "$GEM" ] ; then
+ PATH="$GEM:$PATH"
+fi
+
+PATH="$HOME/bin:$HOME/.local/bin:$PATH:/usr/sbin:/sbin"
nihil fit ex nihilo