-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvironment
91 lines (76 loc) · 2.31 KB
/
environment
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Environment variables for the shell and X
# Language
if [ ! -z `locale -a | grep es_ES.utf-8` ] ; then
export LANG="es_ES.utf-8"
elif [ ! -z `locale -a | grep C.UTF-8` ] ; then
export LANG="C.UTF-8"
elif [ ! -z `locale -a | grep C.utf8` ] ; then
export LANG="C.utf8"
else
export LANG="C"
fi
export LC_COLLATE="C"
# Pretty common unix programs
export EDITOR=vi
export MANWIDTH=80
export CDPATH=.:~:~/projects
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# rsync
export RSYNC_RSH=ssh
# Debian
export DEBEMAIL="[email protected]"
export DEBFULLNAME="Alejandro Exojo Piqueras"
export DEBSIGN_KEYID=0x0B8B0BC2
# Other
KDE_NO_IPV6=true
export CYGWIN=winsymlinks:nativestrict
#
# PATH, and PATH-like environment
#
if [ -d $HOME/local/bin ] ; then
export PATH=$HOME/local/bin:"${PATH}"
fi
if [ -d $HOME/local/gems ] ; then
# Run `gem env` for details.
# Where gems will be installed by `gem install --no-user-install`
export GEM_HOME=$HOME/local/gems
# Locations where gems can be found (by who?).
# export GEM_PATH
export PATH=$HOME/local/gems/bin:"${PATH}"
fi
if thereis luarocks ; then
# LuaRocks has a convenience to output both a (modified) LUA_PATH and
# LUA_CPATH (for DLLs) as well as PATH in shell format to be evaluated.
if [ -d $HOME/local/rocks ] ; then
eval `luarocks path --tree $HOME/local/rocks`
else
eval `luarocks path`
fi
fi
if [ -d $HOME/local/node ] ; then
export NPM_CONFIG_PREFIX=$HOME/local/node
export npm_config_prefix=$HOME/local/node
export PATH=$HOME/local/node/bin:"${PATH}"
fi
# TODO: I end up with 3 ~/.local/bin directories for some reason. Find why.
# /etc/skel/.profile contains a rule for this, so this one is redundant in this
# case. Will need to make a function to see if we can detect the string being
# there.
# pip install --user puts it's stuff there. And --target just fails for me.
if [ -d $HOME/.local/bin ] ; then
export PATH=$HOME/.local/bin:"${PATH}"
fi
# if [ -x $HOME/.rbenv/bin/rbenv ] ; then
# export PATH=$HOME/.rbenv/bin:"${PATH}"
# eval "$(rbenv init -)"
# fi
if [ -d $HOME/local/man ] ; then
export MANPATH=$HOME/local/man:"${MANPATH}"
fi
# vim:set filetype=sh noet: