-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.exports
151 lines (124 loc) · 5.12 KB
/
.exports
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#!/usr/bin/env bash
export LOCAL_CUSTOM_USER="user"
export LOCAL_USER=""
if [ ! -z "${LOCAL_CUSTOM_USER}" ]; then
LOCAL_USER="${LOCAL_CUSTOM_USER}"
elif [ ! -z "${USER}" ]; then
LOCAL_USER="${USER}"
fi
# SYNCED_PATH -s ex DROPBOX_PATH
export SYNCED_PATH="/Users/${LOCAL_USER}/SynologyYord"
# Load the .env files from repo
for file in "$HOME/.exports_dir"/*.env; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
# For debugging
# [ -r "$file" ] && [ -f "$file" ] && source "$file" && echo "loading env file... $file";
done;
unset file;
# Used for extra env exports
export EXTRA_ENV_ATH="${SYNCED_PATH}/private/envs"
# Load the .env files from private path
for file in "${EXTRA_ENV_ATH}"/*.env; do
# For debugging
# echo "Private env file to load: $file"
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
##################################
######## USER PREFERENCES ########
################################$$
# Make vim the default editor.
export EDITOR='vim';
# Enable persistent REPL history for `node`.
export NODE_REPL_HISTORY=~/.node_history;
# Allow 32³ entries; the default is 1000.
export NODE_REPL_HISTORY_SIZE='32768';
# Use sloppy mode by default, matching web browsers.
export NODE_REPL_MODE='sloppy';
# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
export PYTHONIOENCODING='UTF-8';
# Increase Bash history size. Allow 32³ entries; the default is 500.
export HISTSIZE='32768';
export HISTFILESIZE="${HISTSIZE}";
# Omit duplicates and commands that begin with a space from history.
export HISTCONTROL='ignoreboth';
# Prefer US English and use UTF-8.
export LANG='en_US.UTF-8';
export LC_ALL='en_US.UTF-8';
# Highlight section titles in manual pages.
export LESS_TERMCAP_md="${yellow}";
# Don’t clear the screen after quitting a manual page.
export MANPAGER='less -X';
# Avoid issues with `gpg` as installed via Homebrew.
# https://stackoverflow.com/a/42265848/96656
export GPG_TTY=$(tty);
# Used in ./.macos
COMPUTER_NAME="${COMPUTER_NAME:-yord-mac}"
SYNCED_PATH="${SYNCED_PATH:-/Users/${LOCAL_USER}/SynologyYord}"
export WALLPAPER_PATH="${WALLPAPER_PATH:-/Users/${LOCAL_USER}/SynologyShared/backgrounds}"
export WALLPAPER_IMAGE="${WALLPAPER_PATH}/927332-grain-wallpaper-for-meizu.jpg"
export WALLPAPER="${WALLPAPER_PATH}/927393-amazing-grain-wallpaper-2880x1800-ipad-pro.jpg"
export WALLPAPER_1="${WALLPAPER_PATH}/1151480-gorgerous-fields-wallpaper-1920x1200-for-android-50.jpg"
export WALLPAPER_2="${WALLPAPER_PATH}/1151409-fields-wallpaper-2560x1600-for-phones.jpg"
export BH_URL="http://localhost:8080"
# Used in ./setup/directories/ssh.sh
export SSH_KEYS_PATH="${SYNCED_PATH}/private/ssh/keys/aio/"
export SSH_KEYS_CONFIG="${SYNCED_PATH}/private/ssh/configs/main"
# export SSH_WORK_KEYS_PATH="${SYNCED_PATH}/private/ssh/keys/lenses_devops/"
export HISTORY_PATH="${SYNCED_PATH}/private/zsh_history"
# Used in ./setup/apps/07-docker.sh
export DOCKER_MOUNTABLE_HOST_FOLDER="/opt/codebase"
# Used in backup-plists function
export PLISTS_BACKUP_PATH="/opt/codebase/georgeyord/mathiasdotfiles/plists"
### SET TOUCHBAR FUNCTION LABELS PER APPLICATION ###
# if [ -f ~/.iterm2/it2setkeylabel ]; then
# export ITERM2_KEYLABEL_DEFAULT="default"
# ~/.iterm2/it2setkeylabel set F1 "F1"
# ~/.iterm2/it2setkeylabel set F2 "F2"
# ~/.iterm2/it2setkeylabel set F3 "F3"
# ~/.iterm2/it2setkeylabel set F4 "F4"
# ~/.iterm2/it2setkeylabel set F5 "F5"
# ~/.iterm2/it2setkeylabel set F6 "F6"
# ~/.iterm2/it2setkeylabel set F7 "F7"
# ~/.iterm2/it2setkeylabel set F8 "F8"
# ~/.iterm2/it2setkeylabel set F9 "F9"
# ~/.iterm2/it2setkeylabel set F10 "10"
# ~/.iterm2/it2setkeylabel set F11 "11"
# ~/.iterm2/it2setkeylabel set F13 "13"
# ~/.iterm2/it2setkeylabel set F14 "14"
# ~/.iterm2/it2setkeylabel set F15 "15"
# ~/.iterm2/it2setkeylabel set F16 "16"
# ~/.iterm2/it2setkeylabel set F17 "17"
# ~/.iterm2/it2setkeylabel push "${ITERM2_KEYLABEL_DEFAULT}"
# export ITERM2_KEYLABEL_BYOBU="byobu"
# ~/.iterm2/it2setkeylabel set F1 "F1"
# ~/.iterm2/it2setkeylabel set F2 "New"
# ~/.iterm2/it2setkeylabel set F3 "<-"
# ~/.iterm2/it2setkeylabel set F4 "->"
# ~/.iterm2/it2setkeylabel set F5 "F5"
# ~/.iterm2/it2setkeylabel set F6 "F6"
# ~/.iterm2/it2setkeylabel set F7 "Scrollback"
# ~/.iterm2/it2setkeylabel set F8 "Rename"
# ~/.iterm2/it2setkeylabel set F9 "Menu"
# ~/.iterm2/it2setkeylabel set F10 "10"
# ~/.iterm2/it2setkeylabel set F11 "11"
# ~/.iterm2/it2setkeylabel set F13 "13"
# ~/.iterm2/it2setkeylabel set F14 "14"
# ~/.iterm2/it2setkeylabel set F15 "15"
# ~/.iterm2/it2setkeylabel set F16 "16"
# ~/.iterm2/it2setkeylabel set F17 "17"
# ~/.iterm2/it2setkeylabel push "${ITERM2_KEYLABEL_BYOBU}"
# fi
export BATS_LIB_PATH="${BREW_PREFIX}/lib"
# Bat like cat ;-)
export BAT_CONFIG_PATH="$HOME/.bat.conf"
# Go development
# hash /usr/local/bin/go 2> /dev/null && \
# test -f /usr/local/bin/go 2> /dev/null && (
# export GOPATH="${HOME}/go"
# export GOBIN="$(go env GOPATH)/bin"
# export GOROOT="$(brew --prefix golang)/libexec"
# ) || echo >&2 "Go lang not found"
hash pyenv 2> /dev/null && (
export PYENV_ROOT="$HOME/.pyenv"
) || echo >&2 "Python's pyenv not found (exports)"