-
Notifications
You must be signed in to change notification settings - Fork 5
/
environ
90 lines (69 loc) · 1.99 KB
/
environ
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
# ~/.environ - sh/bash global environment
# vim: ft=sh
# Local variables that might be used in the rest of .environ
test "$UID" || UID=$(id -u)
test "$USER" || USER=$(id -un)
test "$HOSTNAME" || HOSTNAME=$(hostname)
add_path() case :$PATH: in *:$1:*) ;; *) PATH=$1:$PATH;; esac
path_add() case :$PATH: in *:$1:*) ;; *) PATH=$PATH:$1;; esac
# Enable allexport
set -a
# System path
add_path ~/bin
add_path ~/bin/bin
add_path ~/bin/obj/host.$HOSTNAME
add_path ~/.local/bin
path_add /usr/local/sbin
path_add /usr/sbin
path_add /sbin
path_add ~/bin/fallback
# Defaults for makepkg, git commit, etc.
NAME="Mantas Mikulėnas"
EMAIL="grawity@gmail.com"
# Locale
TZ="Europe/Vilnius"
# Preferred programs
EDITOR="vim"
unset VISUAL
# Interpreters
PERL5LIB="$PREFIX/lib/perl5:$HOME/bin/lib/perl5"
PYTHONPATH="$HOME/bin/lib/python"
IRBRC="$HOME/.dotfiles/irbrc"
PYTHONSTARTUP="$HOME/.dotfiles/pythonrc"
# Turn off curses-based REPL in 3.13
PYTHON_BASIC_REPL="1"
# Default install base for npm and some other stuff
PREFIX="$HOME/.local"
PERL_CPANM_HOME="$HOME/.cache/cpanminus"
PERL_MM_OPT="INSTALL_BASE=$PREFIX"
PERL_MB_OPT="--install_base '$PREFIX'"
# Sysstat/iostat - enable colors (probably on by default, now)
S_COLORS="auto"
# Less - various options
# -e Quit at second EOF
# -M Detailed status/prompt
# -q Use visual instead of audible bell at EOF
# -Q Always use visual bell
# -R Pass through formatting sequences
# -F Immediately quit if one screen
# -X Don't use alternate screen
# -z-3 Keep 3 line context when scrolling
LESS="e M q R F X z-3"
# Misc
MAKEFLAGS="-j $(nproc)"
NSS_DEFAULT_DB_TYPE="sql"
PIP_BREAK_SYSTEM_PACKAGES="1"
SUDO_PROMPT="sudo password for %p@[30;43m%h[m: "
#TPM2_PKCS11_STORE="$HOME/.local/share/tpm2_pkcs11"
if [ "$DISPLAY" ]; then
. ~/.dotfiles/environ-desktop
fi
if [ -f ~/.dotfiles/environ-$HOSTNAME ]; then
. ~/.dotfiles/environ-$HOSTNAME
fi
if [ -f ~/.environ-$HOSTNAME ]; then
. ~/.environ-$HOSTNAME
fi
test "$FQDN" || FQDN=$(LC_ALL="C" fqdn)
# Disable allexport again
set +a