11source {{ joinPath .chezmoi.sourceDir " lib" " common" " functions.sh" | quote }}
2- # If you come from bash you might have to change your $PATH .
3- # export PATH= $HOME /bin:/usr/local/bin:$PATH
4-
5- # Path to your oh-my-zsh installation.
6- export ZSH= " $HOME/.oh-my-zsh"
7-
8- # Set name of the theme to load --- if set to " random" , it will
9- # load a random theme each time oh-my-zsh is loaded, in which case,
10- # to know which specific one was loaded, run: echo $RANDOM_THEME
11- # See https://github.com /ohmyzsh/ohmyzsh/wiki/Themes
12- ZSH_THEME= " agnoster"
13-
14- # Set list of themes to pick from when loading at random
15- # Setting this variable when ZSH_THEME= random will cause zsh to load
16- # a theme from this variable instead of looking in $ZSH /themes/
17- # If set to an empty array, this variable will have no effect.
18- # ZSH_THEME_RANDOM_CANDIDATES= ( " robbyrussell" " agnoster" )
192
203# Uncomment the following line to use case-sensitive completion.
214# CASE_SENSITIVE= " true"
@@ -24,14 +7,6 @@ ZSH_THEME="agnoster"
247# Case-sensitive completion must be off. _ and - will be interchangeable.
258# HYPHEN_INSENSITIVE= " true"
269
27- # Uncomment one of the following lines to change the auto-update behavior
28- # zstyle ':omz:update' mode disabled # disable automatic updates
29- zstyle ':omz:update' mode auto # update automatically without asking
30- # zstyle ':omz:update' mode reminder # just remind me to update when it's time
31-
32- # Uncomment the following line to change how often to auto-update (in days).
33- # zstyle ':omz:update' frequency 13
34-
3510# Uncomment the following line if pasting URLs and other text is messed up.
3611# DISABLE_MAGIC_FUNCTIONS= " true"
3712
@@ -50,38 +25,6 @@ zstyle ':omz:update' mode auto # update automatically without asking
5025# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
5126# COMPLETION_WAITING_DOTS= " true"
5227
53- # Uncomment the following line if you want to disable marking untracked files
54- # under VCS as dirty. This makes repository status check for large repositories
55- # much, much faster.
56- # DISABLE_UNTRACKED_FILES_DIRTY= " true"
57-
58- # Uncomment the following line if you want to change the command execution time
59- # stamp shown in the history command output.
60- # You can set one of the optional three formats:
61- # " mm/dd/yyyy" | " dd.mm.yyyy" | " yyyy-mm-dd"
62- # or set a custom format using the strftime function format specifications,
63- # see 'man strftime' for details.
64- # HIST_STAMPS= " mm/dd/yyyy"
65-
66- # Would you like to use another custom folder than $ZSH /custom?
67- # ZSH_CUSTOM= /path/to/new-custom-folder
68-
69- # Which plugins would you like to load?
70- # Standard plugins can be found in $ZSH /plugins/
71- # Custom plugins may be added to $ZSH_CUSTOM /plugins/
72- # Example format: plugins= (rails git textmate ruby lighthouse)
73- # Add wisely, as too many plugins slow down shell startup.
74- plugins= ()
75-
76- source " $ZSH/oh-my-zsh.sh"
77-
78- # User configuration
79-
80- # export MANPATH= " /usr/local/man:$MANPATH"
81-
82- # You may need to manually set your language environment
83- # export LANG= en_US.UTF -8
84-
8528# Preferred editor for local and remote sessions
8629if [[ -n $SSH_CONNECTION ]]; then
8730 export EDITOR= 'vim'
9235export GIT_EDITOR= " $EDITOR"
9336export VISUAL= " $EDITOR"
9437
95- # Compilation flags
96- # export ARCHFLAGS= " -arch x86_64"
97-
98- # Set personal aliases, overriding those provided by oh-my-zsh libs,
99- # plugins, and themes. Aliases can be placed here, though oh-my-zsh
100- # users are encouraged to define aliases within the ZSH_CUSTOM folder.
101- # For a full list of active aliases, run ` alias` .
102- #
103- # Example aliases
104- # alias zshconfig= " mate ~/.zshrc"
105- # alias ohmyzsh= " mate ~/.oh-my-zsh"
106-
10738source_if_exists .aliases
10839
10940{{ if $ .gui -}}
110- source_if_exists " .iterm2_shell_integration.zsh"
41+ test -e " $HOME/.iterm2_shell_integration.zsh " && source " $HOME/ .iterm2_shell_integration.zsh"
11142{{ end -}}
11243
11344{{ if has " personal" $ .tags -}}
@@ -179,10 +110,17 @@ add_ibrew
179110
180111unset ibrew_bin mbrew_bin ibrew_default_bin mbrew_default_bin
181112
113+ source " $HOMEBREW_PREFIX/share/antigen/antigen.zsh"
114+ antigen use oh-my-zsh
115+ antigen theme agnoster
116+ antigen apply
117+
118+ zstyle ':omz:update' mode auto # update automatically without asking
119+
182120if has_cmd brew; then
183121 gcloud_dir= " $HOMEBREW_PREFIX/share/google-cloud-sdk"
184- source_if_exists " $gcloud_dir/path.zsh.inc"
185- source_if_exists " $gcloud_dir/completion.zsh.inc"
122+ test -e " $gcloud_dir/path.zsh.inc " && source_if_exists " $gcloud_dir/path.zsh.inc"
123+ test -e " $gcloud_dir/completion.zsh.inc " && source_if_exists " $gcloud_dir/completion.zsh.inc"
186124 unset gcloud_dir
187125
188126 source_if_exists " $HOMEBREW_PREFIX/opt/asdf/libexec/asdf.sh"
@@ -192,8 +130,10 @@ if has_cmd direnv; then
192130 eval " $(direnv hook zsh)"
193131fi
194132
195- {{ include (joinPath $ .chezmoi.homeDir " .zshrc.local" ) -}}
133+ {{ template " includeIfExists.tmpl " (joinPath $ .chezmoi.homeDir " .zshrc.local" ) -}}
196134
197135# We finished init, set up completions (OMZ does this above, but we add our own, so do it again)
198136autoload -Uz compinit
199137compinit
138+
139+ {{ template " includeIfExists.tmpl" (joinPath $ .chezmoi.homeDir " .zsh_completion_aliases.local" ) -}}
0 commit comments