-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
46 lines (35 loc) · 1.18 KB
/
.zshrc
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
# HISTORY SIZE SETTINGS.
export HISTFILESIZE=5000000
export HISTSIZE=5000000
export SAVEHIST=$HISTSIZE
export HISTFILE=~/.histfile
# APPEND TO HISTORY IMMEDIATELY & ADD TIMESTAMP TO ENTRIES.
setopt appendhistory
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
export HISTTIMEFORMAT="[%F %T] "
setopt EXTENDED_HISTORY
# REMOVE DUPLICATES FROM HISTORY
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
# LOAD ALL-PURPOSE ALIASES.
[[ -f "$HOME/.aliases" ]] && source "$HOME/.aliases"
# LOAD GIT BRANCH INFO (IN WITHIN A REPO).
[[ -f "$HOME/.git-prompt.sh" ]] && source "$HOME/.git-prompt.sh"
# LOAD GIT ALIASES.
[[ -f "$HOME/.aliases_git" ]] && source "$HOME/.aliases_git"
# LOAD CODE ALIASES.
[[ -f "$HOME/.aliases_code" ]] && source "$HOME/.aliases_code"
# LOAD RUNTIME ALIASES.
[[ -f "$HOME/.aliases_runtimes" ]] && source "$HOME/.aliases_runtimes"
# LOAD FUNCTIONS.
[[ -f "$HOME/.functions" ]] && source "$HOME/.functions"
# LOAD MAC-SPECIFIC ALIASES.
[[ -f "$HOME/.macos" ]] && source "$HOME/.macos"
# INIT SCRIPTS FOR STARSHIP
eval "$(starship init zsh)"
# LOAD RUNTIMES.
[[ -f "$HOME/.runtimes" ]] && source "$HOME/.runtimes"
# END OF FILE