-
Notifications
You must be signed in to change notification settings - Fork 15
/
profile
126 lines (93 loc) · 2.08 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#
# Terminal
#
export TERMINAL='alacritty'
#
# Editors
#
export EDITOR='vim'
export VISUAL='vim'
export PAGER='less'
#
# Path
#
export PATH=~/bin:~/.local/bin/:$PATH
#
# Less
#
# Set the default Less options.
export LESS='-F -g -i -M -R -w -z-4 -#3'
# Find lesspipe
if command -v lesspipe.sh >/dev/null 2>&1; then
lesspipe="lesspipe.sh"
elif command -v lesspipe >/dev/null 2>&1; then
lesspipe="lesspipe"
fi
# Set the less input preprocessor.
if [[ -z "$lesspipe" ]]; then
export LESSOPEN="| $lesspipe %s 2>&-"
fi
#
# Temporary Files
#
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$LOGNAME"
mkdir -p -m 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"
#
# Python
#
# Set the default environment directory for virtualenvwrapper.
export WORKON_HOME="$HOME/.virtualenvs"
# Set the default project directory for virtualenvwrapper.
export PROJECT_HOME="$HOME/projects"
# Load virtualenvwrapper (lazy).
source /usr/bin/virtualenvwrapper_lazy.sh
# Pyenv
if command -v pyenv 1>/dev/null 2>&1; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
#
# Notes
#
# Set the default note directory.
export NOTEDIR=~/library/notes
# Open spreadsheet notes in visidata
export NOTEXDGEXT="csv tsv"
#
# Journal
#
# Set the default journal directory.
export JOURNALDIR=~/library/journal
#
# Passwords
#
# Set the alternative pass directory.
export ALTPASSDIR=~/projects/tad/pass
# Set the access pass directory.
export ACCESSPASSDIR=~/projects/tad/access
# Set the finance pass directory.
export FINPASSDIR=~/library/finance
#
# Misc
#
# Set the dmenu font.
export DMENU_OPTIONS="-fn -inconsolata-medium-r-*-*-14-*"
# Source credentials.
if [ -f ~/.keys/creds.sh ]; then
source ~/.keys/creds.sh
fi
# Disable QT5 DPI scaling
export QT_AUTO_SCREEN_SCALE_FACTOR=0
# Set GPG TTY
export GPG_TTY=$(tty)
# Use GPG for SSH Agent
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
# Contain the toxic JavaScript ecosystem.
export npm_config_prefix=~/.node_modules