dotfiles/dot_zshrc.tmpl

40 lines
948 B
Cheetah

eval $(keychain --eval --agents ssh {{ .sshkey }})
[ -f ~/.keychain/$HOSTNAME-sh ] && . ~/.keychain/$HOSTNAME-sh 2>/dev/null
ZSH=$HOME/.oh-my-zsh
ZSH_DISABLE_COMPFIX="true"
# CASE_SENSITIVE="true"
DISABLE_AUTO_TITLE="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
COMPLETION_WAITING_DOTS="false"
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS="--ansi"
export BAT_THEME="gruvbox-dark"
zle -N zle-line-init
zle -N zle-keymap-select
export KEYTIMEOUT=1
plugins={{ .plugins }}
source $ZSH/oh-my-zsh.sh
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export EDITOR='nvim'
export GOPATH=$HOME/go
{{ if eq .chezmoi.os "darwin" }}
source $HOME/perl5/perlbrew/etc/bashrc
{{- if eq .chezmoi.arch "arm64" }}
export PATH=/opt/homebrew/bin:$PATH
{{ end }}
{{ end }}
eval "$(zoxide init zsh)"
eval "$(starship init zsh)"