-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_zshrc.tmpl
More file actions
86 lines (63 loc) · 1.53 KB
/
Copy pathdot_zshrc.tmpl
File metadata and controls
86 lines (63 loc) · 1.53 KB
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
#---
# Common
#---
export PATH="${HOME}/.local/bin:${PATH}"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_STATE_HOME="${HOME}/.local/state"
export EDITOR="nvim"
#---
# Oh My Zsh configuration
#---
export ZSH="${HOME}/.oh-my-zsh"
export ZSH_COMPDUMP="${XDG_CACHE_HOME}/zsh/zcompdump-${HOST}-${ZSH_VERSION}"
ZSH_THEME="refined"
plugins=(zsh-autosuggestions zsh-syntax-highlighting)
source "${ZSH}/oh-my-zsh.sh"
autoload -U compinit && compinit
#---
# Completion configuration
#---
zstyle ':completion:*' menu select
zstyle ':completion:*' file-list all
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
#---
# History configuration
#---
export \
HISTFILE="${XDG_STATE_HOME}/zsh/history" \
HISTIGNORE="history*:exit*:logout*:cd*:ls*" \
HISTSIZE=10000 \
SAVEHIST=10000
setopt \
EXTENDED_HISTORY \
INC_APPEND_HISTORY \
HIST_IGNORE_ALL_DUPS \
HIST_IGNORE_SPACE \
HIST_REDUCE_BLANKS \
HIST_FIND_NO_DUPS \
HIST_SAVE_NO_DUPS
#---
# Navigation configuration
#---
setopt \
PUSHD_IGNORE_DUPS \
PUSHD_SILENT
{{ if .isWorkMachine -}}
#---
# Claude Code configuration
#---
export CLAUDE_CODE_USE_VERTEX=1
export CLOUD_ML_REGION=us-east5
export ANTHROPIC_VERTEX_PROJECT_ID={{ .gcpProjectId }}
#---
# OpenShift configuration
#---
export KUBECONFIG="${XDG_CONFIG_HOME}/kube/config"
#---
# Ansible configuration
#---
export ANSIBLE_CONFIG="${XDG_CONFIG_HOME}/ansible/ansible.cfg"
{{- end }}
# vim: set ts=4 sw=4 et: