-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshenv
51 lines (40 loc) · 1.37 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
# Please create some dirs for some program to use XDG base directory
# Reference: scripts/provisioning/create-xdg-dir.sh
# zsh
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export HISTFILE="$XDG_DATA_HOME/zsh/zsh_history"
# zinit
export ZINITDIR="$XDG_DATA_HOME/zinit"
declare -Agx ZINIT
ZINIT[HOME_DIR]="$ZINITDIR"
ZINIT[BIN_DIR]="$ZINITDIR/bin"
ZINIT[PLUGINS_DIR]="$ZINITDIR/plugins"
ZINIT[COMPLETIONS_DIR]="$ZINITDIR/completions"
ZINIT[SNIPPETS_DIR]="$ZINITDIR/snippets"
ZINIT[ZCOMPDUMP_PATH]="$XDG_CACHE_HOME/zcompdump/zcompdump-zinit"
# z.lua
export _ZL_DATA="$XDG_DATA_HOME/zlua/.zlua"
# node.js
export NODE_REPL_HISTORY="$XDG_DATA_HOME/node/node_repl_history"
# ToDo: python
# Reference: https://docs.python.org/3/library/readline.html?highlight=readline#example
# golang
export GOPATH="$XDG_DATA_HOME/go"
export GOBIN="$XDG_DATA_HOME/go/bin"
# docker
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
export MACHINE_STORAGE_PATH="$XDG_DATA_HOME/docker-machine"
# k9s
export K9SCONFIG="$XDG_CONFIG_HOME/k9s"
# aws cli & sdk
export AWS_SHARED_CREDENTIALS_FILE="$XDG_CONFIG_HOME/aws/credentials"
export AWS_CONFIG_FILE="$XDG_CONFIG_HOME/aws/config"
export AWS_SDK_LOAD_CONFIG="true"
# Disable unneeded histories
## less
export LESSHISTFILE=-
## wget
alias wget="wget --no-hsts"