aboutsummaryrefslogtreecommitdiff
path: root/.environment
blob: 03ffd61d064b81b71eb4cd0348395870946ac313 (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
#!/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