blob: 1a888fa18c32012034efd8e0b0d594812c6ffc03 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/bin/sh
# Global environment file. Sourced at shell start and X start.
# Keep it simple and POSIX
# Select an editor.
if [ -n "$INSIDE_EMACS" ]; then
export EDITOR=vim
elif [ -x "`which emacsclient`" ]; then
export EDITOR="emacsclient -tc --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
# Workaround for SSHing with kitty
if [ "$TERM" = "xterm-kitty" ]; then
alias ssh='kitty +kitten ssh'
fi
# Debian settings.
export DEBEMAIL=rul@debian.org
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
GOPATH=$HOME/src/go
PATH="$PATH:/usr/sbin:/sbin"
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
fi
# extra
if [ -d ~/.environment.d/ ]; then
for e in $(find ~/.environment.d/ -type l,f); do
. $e
done
fi
# aliases
if [ -e ~/.alias.d/ ]; then
for e in $(find ~/.alias.d/ -type l,f | sort); do
. $e
done
fi
|