-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
70 lines (52 loc) · 2.01 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# zmodload zsh/zprof
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export TERM="xterm-256color" # for tmux
source "${HOME}/.zgenom/zgenom.zsh"
# add linuxbrew and completions
if [[ -d /home/linuxbrew ]]; then
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
fi
zgenom autoupdate
# if the init scipt doesn't exist
if ! zgenom saved; then
source ~/.zsh/completions.zsh
source "${HOME}/.zsh/plugins"
zgenom save
fi
source ~/.zsh/asdf.zsh
# vim cli settings
source ~/.zsh/vim.zsh
# rust
if [[ -d "$HOME/.cargo/bin" ]]; then
export PATH="$HOME/.cargo/bin:$PATH"
fi
if [[ -d "$HOME/go/bin" ]]; then
export PATH="$HOME/go/bin:$PATH"
fi
alias vim=nvim
setopt AUTO_CD # cd without explicit cd
setopt HIST_IGNORE_SPACE # prefixed ' ' filters command from history
setopt EXTENDED_HISTORY # save timestamp and duration
setopt SHARE_HISTORY # shares between concurrent sessions
setopt HIST_FIND_NO_DUPS # duplicates are still recorded but only one match on history
setopt HIST_NO_STORE # remove 'history ...' commands from history
setopt HIST_REDUCE_BLANKS # cleanup whitespace
setopt INC_APPEND_HISTORY_TIME # add commands to history after command finishes rather than session end
export EDITOR=nvim
export MANPAGER='nvim +Man!'
export MANWIDTH=999
command -v direnv > /dev/null && eval "$(direnv hook zsh)"
[ -f ~/.zsh_work ] && source ~/.zsh_work
source ~/.zsh/ag_helpers
source ~/.zsh/git_helpers
source ~/.zsh/fzf.zsh
source ~/.zsh/chruby.zsh
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
source ~/.zsh/p10k.zsh
export PATH="$HOME/bin:$PATH"
# zprof