-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
101 lines (81 loc) · 2.02 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
if [ -f /etc/profile ]; then
. /etc/profile
fi
export PATH=$HOME/.local/bin:$PATH
if [ -d "$HOME/.oh-my-zsh" ]; then
ZSH_THEME="robbyrussell"
plugins=(
autojump
aws
dirhistory
fzf
gh
git
gitfast
gradle
kubectl
pass
pyenv
terraform
)
export ZSH=$HOME/.oh-my-zsh
source $ZSH/oh-my-zsh.sh
fi
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export EDITOR='nvim'
# AWS CLI
if [ -f "$HOME/.nix-profile/bin/aws_completer" ]; then
autoload bashcompinit && bashcompinit
autoload -Uz compinit && compinit
complete -C "$HOME/.nix-profile/bin/aws_completer" aws
fi
# AWS-Vault
if [ -f "$HOME/.local/bin/aws-vault" ]; then
export AWS_VAULT_BACKEND=pass
export AWS_VAULT_PASS_PREFIX=aws-vault
export AWS_ASSUME_ROLE_TTL=1h
export AWS_SESSION_TTL=8h
eval "$($HOME/.local/bin/aws-vault --completion-script-zsh)"
fi
# OpenShift CLI
if [ $commands[oc] ]; then
source <(oc completion zsh)
compdef _oc oc
fi
# Yarn
if [ -f "$HOME/.yarn/bin/yarn" ]; then
export PATH="$HOME/.yarn/bin":$PATH
fi
# Go
if [ -f "$HOME/.go/bin/go" ]; then
export PATH=$PATH:"$HOME/.go/bin"
export GOPATH="$HOME/go"
export PATH=$PATH:"$GOPATH/bin"
fi
# Ruby
if [ -f "$HOME/.rbenv/bin/rbenv" ]; then
export PATH=$PATH:"$HOME/.rbenv/bin"
eval "$(rbenv init -)"
fi
# Pyenv
if [ -f "$HOME/.pyenv/bin/pyenv" ]; then
export PATH=$PATH:"$HOME/.pyenv/bin"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
# Pipenv shell completion
if [ -x "$(command -v pipenv)" ]; then
eval "$(pipenv --completion)"
fi
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
. "$HOME"/.nix-profile/etc/profile.d/nix.sh
fi
if [ -d "$HOME/Library/Python/3.10/bin" ]; then
export PATH="$HOME/Library/Python/3.10/bin":$PATH
fi
alias vi=nvim
LESS=FRX # https://github.com/cli/cli/discussions/3685