Skip to content

Commit 0853a4a

Browse files
committed
Switch to antigen
1 parent 7070158 commit 0853a4a

6 files changed

Lines changed: 23 additions & 80 deletions

File tree

home/.chezmoidata/packages.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ packages:
4949
platforms:
5050
- darwin
5151
- linux
52+
antigen:
53+
platforms:
54+
- darwin
55+
- linux

home/.chezmoiexternal.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ if stat . -}}
2+
{{ include . }}
3+
{{ end -}}

home/dot_zshrc.tmpl

Lines changed: 13 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
11
source {{ 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
8629
if [[ -n $SSH_CONNECTION ]]; then
8730
export EDITOR='vim'
@@ -92,22 +35,10 @@ fi
9235
export GIT_EDITOR="$EDITOR"
9336
export 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-
10738
source_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

180111
unset 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+
182120
if 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)"
193131
fi
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)
198136
autoload -Uz compinit
199137
compinit
138+
139+
{{ template "includeIfExists.tmpl" (joinPath $.chezmoi.homeDir ".zsh_completion_aliases.local") -}}

home/lib/common/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source_if_exists() {
88
file="$HOME/$file"
99
fi
1010

11-
test -f "$file" && source "$file"
11+
test -e "$file" && source "$file"
1212
}
1313

1414
add_to_path() {

iterm2_settings/com.googlecode.iterm2.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,8 @@
14521452
</dict>
14531453
<key>QuitWhenAllWindowsClosed</key>
14541454
<true/>
1455+
<key>ShowFullScreenTabBar</key>
1456+
<false/>
14551457
<key>SoundForEsc</key>
14561458
<false/>
14571459
<key>TabStyleWithAutomaticOption</key>

0 commit comments

Comments
 (0)