-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
43 lines (33 loc) · 1.53 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
##############################################################################
# .zshenv
#
# Reference:
# - https://www.m3tech.blog/entry/dotfiles-bonsai#こだわり-ホームディレクトリの掃除
# - https://github.com/NagayamaRyoga/dotfiles/blob/main/config/zsh/.zshenv
##############################################################################
# ----------------------------------------------------------------------------
# XDG Base Directory Specification
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
# ----------------------------------------------------------------------------
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_CACHE_HOME="$HOME/.cache"
# ----------------------------------------------------------------------------
# History
# ----------------------------------------------------------------------------
# zsh
export HISTFILE="$XDG_STATE_HOME/zsh_history"
# - in memory
export HISTSIZE=3000
# - in file
export SAVEHIST=30000
# ts-node | https://github.com/TypeStrong/ts-node#ts_node_history
export TS_NODE_HISTORY="$XDG_STATE_HOME/ts_node_repl_history"
# node | https://nodejs.org/api/repl.html#environment-variable-options
export NODE_REPL_HISTORY="$XDG_STATE_HOME/node_repl_history"
export SQLITE_HISTORY="$XDG_STATE_HOME/sqlite_history"
export MYSQL_HISTFILE="$XDG_STATE_HOME/mysql_history"
export PSQL_HISTORY="$XDG_STATE_HOME/psql_history"
export HISTTIMEFORMAT='%Y%m%d %T%z | '
export EDITOR=vim