-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
52 lines (45 loc) · 1.29 KB
/
.profile
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
# Locale
if LC_ALL=C locale -a | grep -q '^en_US.utf8$'; then
export LANG=en_US.utf8
elif LC_ALL=C locale -a | grep -q '^C.utf8$'; then
export LANG=C.utf8
else
export LANG=C
fi
export LANGUAGE="$LANG"
export LC_COLLATE="$LANG"
export LC_CTYPE="$LANG"
export LC_IDENTIFICATION="$LANG"
export LC_NUMERIC="$LANG"
export LC_MESSAGES="$LANG"
unset LC_ALL
if locale -a | grep -q '^sv_SE.utf8$'; then
export LC_ADDRESS=sv_SE.utf8
export LC_MEASUREMENT=sv_SE.utf8
export LC_MONETARY=sv_SE.utf8
export LC_NAME=sv_SE.utf8
export LC_PAPER=sv_SE.utf8
export LC_TELEPHONE=sv_SE.utf8
export LC_TIME=sv_SE.utf8
else
export LC_ADDRESS="$LANG"
export LC_MEASUREMENT="$LANG"
export LC_MONETARY="$LANG"
export LC_NAME="$LANG"
export LC_PAPER="$LANG"
export LC_TELEPHONE="$LANG"
export LC_TIME="$LANG"
fi
# Path
for d in $HOME/.local/bin $HOME/.local/opt/*/bin; do
if [ -d "$d" ]; then
PATH="$d${PATH:+:$PATH}"
fi
done
# Enable using emacsclient as editor of other commands. Setting ALTERNATE_EDITOR
# like this makes emacsclient start a server in the background and try to
# reconnect, if it can't find one.
export EDITOR="emacsclient --quiet --tty --create-frame"
export ALTERNATE_EDITOR=""
# Use less with -R (show ANSI colour)
export PAGER='less -R'