Skip to content

Commit

Permalink
use antigen
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Nov 10, 2024
1 parent bfe9dc9 commit 34ac446
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 48 deletions.
27 changes: 27 additions & 0 deletions .zsh_plugins.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
mattmc3/ez-compinit
zsh-users/zsh-completions kind:fpath path:src
belak/zsh-utils path:completion/functions kind:autoload post:compstyle_zshzoo_setup

loiccoyle/zsh-github-copilot
ohmyzsh/ohmyzsh path:plugins/aliases
ohmyzsh/ohmyzsh path:plugins/argocd
ohmyzsh/ohmyzsh path:plugins/asdf
ohmyzsh/ohmyzsh path:plugins/aws
ohmyzsh/ohmyzsh path:plugins/branch
ohmyzsh/ohmyzsh path:plugins/colored-man-pages
ohmyzsh/ohmyzsh path:plugins/command-not-found
ohmyzsh/ohmyzsh path:plugins/common-aliases
ohmyzsh/ohmyzsh path:plugins/copybuffer
ohmyzsh/ohmyzsh path:plugins/dircycle
ohmyzsh/ohmyzsh path:plugins/fzf
ohmyzsh/ohmyzsh path:plugins/git
ohmyzsh/ohmyzsh path:plugins/git-auto-fetch
ohmyzsh/ohmyzsh path:plugins/github
ohmyzsh/ohmyzsh path:plugins/golang
ohmyzsh/ohmyzsh path:plugins/kube-ps1
ohmyzsh/ohmyzsh path:plugins/kubectl
ohmyzsh/ohmyzsh path:plugins/kubectx
ohmyzsh/ohmyzsh path:plugins/terraform
ohmyzsh/ohmyzsh path:plugins/urltools
zsh-users/zsh-autosuggestions
zdharma-continuum/fast-syntax-highlighting
54 changes: 6 additions & 48 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ zmodload zsh/zprof
# Basic ZSH Config #
# ================ #

# Ensure path arrays do not contain duplicates.
typeset -gU path fpath

# Additional PATHs
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"
export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"
Expand All @@ -16,13 +19,6 @@ export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/opt/postgresql@15/bin:$PATH"
export XDG_CONFIG_HOME=${HOME}/.config

export ZSH="$HOME/.oh-my-zsh"
# ZSH_THEME="mosherussell"
ENABLE_CORRECTION="false"
COMPLETION_WAITING_DOTS="false"
DISABLE_UNTRACKED_FILES_DIRTY="true"
DISABLE_AUTO_UPDATE="true"
zstyle ':omz:update' mode reminder # just remind me to update when it's time
unset ZSH_AUTOSUGGEST_USE_ASYNC
export GPG_TTY=$(tty)

Expand All @@ -48,49 +44,11 @@ setopt HIST_VERIFY # Don't execute immediately upon history expansion
setopt HIST_BEEP # Beep when accessing nonexistent history.
# setopt HIST_IGNORE_SPACE # Don't record an entry starting with a space.

# ========= #
# Plugins #
# ========= #
plugins=(
aliases
argocd
asdf
autoupdate
aws
branch
colored-man-pages
command-not-found
common-aliases
copybuffer
dircycle
docker
fzf
gh
git
git-auto-fetch
github
golang
helm
kube-ps1
kubectl
kubectx
terraform
urltools
zsh-autosuggestions
zsh-github-copilot
zsh-syntax-highlighting
)

# ============= #
# Completions #
# ============= #
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
fpath+=/opt/homebrew/share/zsh/site-functions

# ============= #
# Autoloaders #
# ============= #
source $ZSH/oh-my-zsh.sh
source $HOME/.antidote/antidote.zsh
antidote load
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS='--color fg:242,bg:236,hl:65,fg+:15,bg+:239,hl+:108 --color info:108,prompt:109,spinner:108,pointer:168,marker:168'
export FZF_CTRL_T_COMMAND='rg --color=never --files --hidden --follow -g "!.git"'
Expand All @@ -99,7 +57,7 @@ export FZF_CTRL_T_OPTS='--preview "bat --color=always --style=numbers,changes {}
# ================ #
# PS1 and Random #
# ================ #
compdef terragrunt='terraform'
complete -o nospace -C terragrunt -C terraform terragrunt
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
export EDITOR="nvim"
export AWS_PAGER=""
Expand Down

0 comments on commit 34ac446

Please sign in to comment.