-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshenv
31 lines (24 loc) · 1.08 KB
/
zshenv
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
# Add all bin paths from ~/Programy to $PATH
BINARIES=( ~/.bin/ ~/Programy/*/bin ~/Programy/* ) 2> /dev/null
[ ${#BINARIES[@]} -ne 0 ] && path+=( $BINARIES )
# Configure restic
export RESTIC_REPOSITORY='sftp:[email protected]:/home/restic'
export RESTIC_PASSWORD_COMMAND='gpg --decrypt --quiet /home/czocher/.backup_password.asc'
# Set XDG to defaults if not set
[ -z "$XDG_DATA_HOME" ] && export XDG_DATA_HOME="$HOME/.local/share"
[ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME="$HOME/.config"
[ -z "$XDG_CACHE_HOME" ] && export XDG_CACHE_HOME="$HOME/.cache"
# https://blog.packagecloud.io/eng/2017/02/21/set-environment-variable-save-thousands-of-system-calls/
export TZ=':/etc/localtime'
# Use the podman socket instead of docker
export DOCKER_HOST="unix://$XDG_RUNTIME_DIR/podman/podman.sock"
# Disable Ryuk in testcontainers
export TESTCONTAINERS_RYUK_DISABLED='true'
# Configure CDPATH
export CDPATH=~/:~/Projekty
# Show emoji box when in toolbox context
prompt_context() {
if [[ -f /run/.containerenv && -f /run/.toolboxenv ]]; then
prompt_segment black default '⛶'
fi
}