-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
57 lines (46 loc) · 1.87 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
for file in $(ls ~/.config/zsh)
do
source ~/.config/zsh/$file
done
export HISTFILE=${HOME}/.zsh_history
export HISTSIZE=1000
export SAVEHIST=100000
setopt hist_ignore_dups
setopt EXTENDED_HISTORY
autoload -U compinit && compinit
export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
# https://aquaproj.github.io/docs/reference/config/#environment-variables
export AQUA_GLOBAL_CONFIG=$HOME/aqua.yaml
# https://aquaproj.github.io/docs/reference/use-aqua-with-other-tools
# PATH内の優先度が下がるように早くexportする
export PATH=${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:$PATH
export PATH=/home/linuxbrew/.linuxbrew/bin:$PATH
export PATH=/home/linuxbrew/.linuxbrew/sbin:$PATH
export PATH=/usr/local/go/bin:$PATH
export GOPATH=$(go env GOPATH)
export PATH=$GOPATH/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/.krew/bin:$PATH
export PATH=$HOME/.linkerd2/bin:$PATH
# https://asdf-vm.com/guide/getting-started.html#_3-install-asdf
. "$HOME/.asdf/asdf.sh"
# https://jlk.fjfi.cvut.cz/arch/manpages/man/gpg-agent.1.html
export GPG_TTY=$(tty)
# https://direnv.net/docs/hook.html#zsh
eval "$(direnv hook zsh)"
# https://starship.rs/guide/#%F0%9F%9A%80-installation
eval "$(starship init zsh)"
if [[ $(uname) = "Linux" ]] then
# https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#packages
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md#using-packages
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
if [[ $(uname) = "Darwin" ]] then
eval $(/opt/homebrew/bin/brew shellenv)
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
fi
if type "rbenv" > /dev/null 2>&1; then
eval "$(rbenv init - zsh)"
fi