-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.dist
40 lines (37 loc) · 1.45 KB
/
.env.dist
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
# shellcheck disable=SC2154,SC2155
# ==================================================================
# PATHS
# ==================================================================
if [[ -z "$REPO" ]]; then
if [[ "${SHELL##*/}" == 'zsh' ]]; then
export REPO="$(realpath "${0:h}")"
elif [[ "${SHELL##*/}" == 'bash' ]]; then
export REPO="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
fi
fi
export USERNAME="$(whoami)"
# ------------------------------------------------------------------
# XDG PATH VARIABLES
# ------------------------------------------------------------------
export XDG_DOWNLOAD_DIR="$XDG_DOWNLOAD_DIR"
export XDG_DATA_DIRS=/usr/local/share
# ------------------------------------------------------------------
# ZSH VARIABLES
# ------------------------------------------------------------------
export ZDOTDIR="$HOME"
export ZSH="$HOME"/.oh-my-zsh
export ZSH_CUSTOM="$ZSH/custom"
export ZSHDIR="$HOME"/.zsh
export ZSHSHARE="/usr/local/share/zsh"
# ------------------------------------------------------------------
# MISC PATHS
# ------------------------------------------------------------------
export LOGDIR="$ZSHSHARE"/log
export SSHDIR="$HOME"/.ssh
export SWARMDIR="$HOME"/.swarm
if [[ -z "$SOURCE_DIRS" ]]; then export SOURCE_DIRS=("$SWARMDIR/apps" "$SWARMDIR/pkgs"); fi
# ==================================================================
# ENV
# ==================================================================
export LOG_VERBOSE
LOG_VERBOSE=1