dotfiles/home/dot_zshrc.tmpl

55 lines
1.4 KiB
Cheetah
Raw Normal View History

2023-02-26 16:08:31 +00:00
{{ if .shell.tmux }}
2023-02-25 16:18:35 +00:00
export ZSH_TMUX_AUTOSTART=true
export ZSH_TMUX_AUTOSTART_ONCE=true
export ZSH_TMUX_AUTOCONNECT=true
2023-02-26 16:08:31 +00:00
{{ end }}
2023-12-31 14:45:19 +00:00
export HISTFILE="$HOME/.zsh_history"
#export HISTFILESIZE=100000
export HISTSIZE=100000
export SAVEHIST=100
2023-02-26 16:08:31 +00:00
2023-02-25 16:18:35 +00:00
# install zinit
# git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin
source ~/.zinit/bin/zinit.zsh
zinit light zsh-users/zsh-completions
2024-04-19 09:04:03 +00:00
zinit snippet OMZ::lib/async_prompt.zsh
2023-02-25 16:18:35 +00:00
zinit light zsh-users/zsh-autosuggestions
zinit light mattbangert/kubectl-zsh-plugin
zinit light zdharma-continuum/fast-syntax-highlighting
zinit light zsh-users/zsh-history-substring-search
# OhMyZSH Plugs
zinit snippet OMZ::lib/completion.zsh
zinit snippet OMZ::lib/git.zsh
zinit snippet OMZ::lib/theme-and-appearance.zsh
zinit ice as="completion"
zinit snippet OMZP::composer
zinit snippet OMZP::aws
zinit snippet OMZ::plugins/sudo/sudo.plugin.zsh
zinit snippet OMZP::kubectl
zinit ice lucid wait='1'
zinit snippet OMZ::plugins/git/git.plugin.zsh
# Load OMZ extract folder
2024-04-19 09:04:03 +00:00
#zinit ice svn
2023-02-25 16:18:35 +00:00
zinit snippet OMZ::plugins/extract
2024-04-19 09:04:03 +00:00
#zinit ice svn
2023-02-25 16:18:35 +00:00
zinit snippet OMZ::plugins/tmux
# theme
zinit light "otakukaze/zsh-ys-theme"
# auto load other zshfiles
[ -f "$HOME/.zsh/zsh.sh" ] && source "$HOME/.zsh/zsh.sh"
[ -f "$HOME/.zprofile" ] && source "$HOME/.zprofile"
# vim: set ft=zsh:
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export PATH="/usr/local/opt/openjdk/bin:$PATH"